parameters: (string)
return_statement: return isinstance(string, basestring)
docstring: Python 2 and 3 compatible string checker.
  
      Args:
          string (str | basestring): the string to check
  
      Returns:
          bool: True or False
docstring_summary: Python 2 and 3 compatible string checker.
docstring_tokens: Python 2 and 3 compatible string checker .
function: def is_str(string):
      """
      Python 2 and 3 compatible string checker.
  
      Args:
          string (str | basestring): the string to check
  
      Returns:
          bool: True or False
  
      """
      if sys.version_info[:2] >= (3, 0):
          return isinstance(string, str)
  
      return isinstance(string, basestring)
function_tokens: def is_str ( string ) : if sys . version_info [ : 2 ] >= ( 3 , 0 ) : return isinstance ( string , str ) return isinstance ( string , basestring )