code: def is_true(value=None):
      '''
      Returns a boolean value representing the "truth" of the value passed. The
      rules for what is a "True" value are:
  
          1. Integer/float values greater than 0
          2. The string values "True" and "true"
          3. Any object for which bool(obj) returns True
      '''
      # First, try int/float conversion
      try:
          value = int(value)
      except (ValueError, TypeError):
          pass
      try:
          value = float(value)
      except (ValueError, TypeError):
          pass
  
      # Now check for truthiness
      if isinstance(value, (six.integer_types, float)):
          return value > 0
      elif isinstance(value, six.string_types):
          return six.text_type(value).lower() == 'true'
      else:
          return bool(valuef is_true(value=None):
      '''
      Returns a boolean value representing the "truth" of the value passed. The
      rules for what is a "True" value are:
  
          1. Integer/float values greater than 0
          2. The string values "True" and "true"
          3. Any object for which bool(obj) returns True
      '''
      # First, try int/float conversion
      try:
          value = int(value)
      except (ValueError, TypeError):
          pass
      try:
          value = float(value)
      except (ValueError, TypeError):
          pass
  
      # Now check for truthiness
      if isinstance(value, (six.integer_types, float)):
          return value > 0
      elif isinstance(value, six.string_types):
          return six.text_type(value).lower() == 'true'
      else:
          return bool(value)
docs: Returns a boolean value representing the "truth" of the value passed. The
      rules for what is a "True" value are:
  
          1. Integer/float values greater than 0
          2. The string values "True" and "true"
          3. Any object for which bool(obj) returns True