def to_auto_download_state(arg):
if pimms.is_str(arg):<EOL><INDENT>arg = arg.lower().strip()<EOL>if arg in ('<STR_LIT>', '<STR_LIT:yes>', '<STR_LIT:true>', '<STR_LIT:1>'): return True<EOL>elif arg in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'): return '<STR_LIT>'<EOL>elif arg in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'): return '<STR_LIT>'<EOL>else: return False<EOL><DEDENT>return arg in (True, <NUM_LIT:1>)<EOL>
to_auto_download_state(arg) attempts to coerce the given argument into a valid auto-downloading
  instruction. Essentially, if arg is "on", "yes", "true", "1", True, or 1, then True is
  returned; if arg is "structure" then "structure" is returned; otherwise False is returned.