code: def process_bool_arg(arg):
      
      if isinstance(arg, bool):
          return arg
      elif isinstance(arg, basestring):
          if arg.lower() in ["true", "1"]:
              return True
          elif arg.lower() in ["false", "0"]:
              return False
docs: Determine True/False from argument