def _str_to_bool(arg):
if arg is None:<EOL><INDENT>return False<EOL><DEDENT>if arg == '<STR_LIT:true>':<EOL><INDENT>return True<EOL><DEDENT>elif arg == '<STR_LIT:false>':<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>
Return True or False depending on input string

        Parses the string 'arg' and returns True if it has the value "true",
        False if it has the value "false" and throws an exception otherwise.