code: def loads(s, **kwargs):
      
      if not isinstance(s, string_type):
          raise TypeError("Expected s to be a str, got %s" % type(s))
  
      try:
          fp = unicodeIO(s)
      except TypeError:
          fp = strIO(s)
  
      return parse(fp, **kwargs)
docs: Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON
      document) to a Python object.