code: def loads(ion_str, catalog=None, single_value=True, encoding='utf-8', cls=None, object_hook=None, parse_float=None,
            parse_int=None, parse_constant=None, object_pairs_hook=None, use_decimal=None, **kw):
      
  
      if isinstance(ion_str, six.binary_type):
          ion_buffer = BytesIO(ion_str)
      elif isinstance(ion_str, six.text_type):
          ion_buffer = six.StringIO(ion_str)
      else:
          raise TypeError('Unsupported text: %r' % ion_str)
  
      return load(ion_buffer, catalog=catalog, single_value=single_value, encoding=encoding, cls=cls,
                  object_hook=object_hook, parse_float=parse_float, parse_int=parse_int, parse_constant=parse_constant,
                  object_pairs_hook=object_pairs_hook, use_decimal=use_decimal)
docs: Deserialize ``ion_str``, which is a string representation of an Ion object, to a Python object using the
      conversion table used by load (above).
  
      Args:
          fp (str): A string representation of Ion data.
          catalog (Optional[SymbolTableCatalog]): The catalog to use for resolving symbol table imports.
          single_value (Optional[True|False]): When True, the data in ``ion_str`` is interpreted as a single Ion value,
              and will be returned without an enclosing container. If True and there are multiple top-level values in
              the Ion stream, IonException will be raised. NOTE: this means that when data is dumped using
              ``sequence_as_stream=True``, it must be loaded using ``single_value=False``. Default: True.
          encoding: NOT IMPLEMENTED
          cls: NOT IMPLEMENTED
          object_hook: NOT IMPLEMENTED
          parse_float: NOT IMPLEMENTED
          parse_int: NOT IMPLEMENTED
          parse_constant: NOT IMPLEMENTED
          object_pairs_hook: NOT IMPLEMENTED
          use_decimal: NOT IMPLEMENTED
          **kw: NOT IMPLEMENTED
  
      Returns (Any):
          if single_value is True:
              A Python object representing a single Ion value.
          else:
              A sequence of Python objects representing a stream of Ion values.