code: def is_truthy(value, default=False):
      
  
      if value is None:
          return False
  
      if isinstance(value, bool):
          return value
  
      if isinstance(value, int):
          return value > 0
  
      trues = ('1', 'true', 'y', 'yes', 'ok')
      falses = ('', '0', 'false', 'n', 'none', 'no')
  
      if value.lower().strip() in falses:
          return False
  
      elif value.lower().strip() in trues:
          return True
  
      else:
          if default:
              return default
          else:
              raise ValueError('Invalid argument given to truthy: {0}'.format(value))
docs: Evaluate a value for truthiness
  
      >>> is_truthy('Yes')
      True
      >>> is_truthy('False')
      False
      >>> is_truthy(1)
      True
  
      Args:
          value (Any): Value to evaluate
          default (bool): Optional default value, if the input does not match the true or false values
  
      Returns:
          True if a truthy value is passed, else False