code: def __one_equals_true(value):
          '''
          Test for ``1`` as a number or a string and return ``True`` if it is.
  
          Args:
              value: string or number or None.
  
          Returns:
              bool: ``True`` if 1 otherwise ``False``.
          '''
          if isinstance(value, six.integer_types) and value == 1:
              return True
          elif (isinstance(value, six.string_types) and
                re.match(r'\d+', value, flags=re.IGNORECASE + re.UNICODE) is not None and
                six.text_type(value) == '1'):
              return True
          return Falsf __one_equals_true(value):
          '''
          Test for ``1`` as a number or a string and return ``True`` if it is.
  
          Args:
              value: string or number or None.
  
          Returns:
              bool: ``True`` if 1 otherwise ``False``.
          '''
          if isinstance(value, six.integer_types) and value == 1:
              return True
          elif (isinstance(value, six.string_types) and
                re.match(r'\d+', value, flags=re.IGNORECASE + re.UNICODE) is not None and
                six.text_type(value) == '1'):
              return True
          return False
docs: Test for ``1`` as a number or a string and return ``True`` if it is.
  
          Args:
              value: string or number or None.
  
          Returns:
              bool: ``True`` if 1 otherwise ``False``.