code: def getbool(value):
      
      value = str(value).lower()
      if value in ['1', 't', 'true', 'y', 'yes']:
          return True
      elif value in ['0', 'f', 'false', 'n', 'no']:
          return False
      return None
docs: Returns a boolean from any of a range of values. Returns None for
      unrecognized values. Numbers other than 0 and 1 are considered
      unrecognized.
  
      >>> getbool(True)
      True
      >>> getbool(1)
      True
      >>> getbool('1')
      True
      >>> getbool('t')
      True
      >>> getbool(2)
      >>> getbool(0)
      False
      >>> getbool(False)
      False
      >>> getbool('n')
      False