def asbool(s):
if s is None:<EOL><INDENT>return False<EOL><DEDENT>if isinstance(s, bool):<EOL><INDENT>return s<EOL><DEDENT>s = str(s).strip()<EOL>return s.lower() in truthy<EOL>
Return the boolean value ``True`` if the case-lowered value of string
    input ``s`` is a :term:`truthy string`. If ``s`` is already one of the
    boolean values ``True`` or ``False``, return it.