def check_internet_off(secrets_file_path):
while True:<EOL><INDENT>if internet_on() is False and os.path.exists(secrets_file_path):<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>")<EOL>time.sleep(<NUM_LIT:10>)<EOL><DEDENT><DEDENT>return True<EOL>
If internet off and USB plugged in, returns true. Else, continues to wait...