code: def deserialize(stream_or_string, **options):
      '''
      Deserialize from TOML into Python data structure.
  
      :param stream_or_string: toml stream or string to deserialize.
      :param options: options given to lower pytoml module.
      '''
  
      try:
          if not isinstance(stream_or_string, (bytes, six.string_types)):
              return toml.load(stream_or_string, **options)
  
          if isinstance(stream_or_string, bytes):
              stream_or_string = stream_or_string.decode('utf-8')
  
          return toml.loads(stream_or_string)
      except Exception as error:
          raise DeserializationError(errorf deserialize(stream_or_string, **options):
      '''
      Deserialize from TOML into Python data structure.
  
      :param stream_or_string: toml stream or string to deserialize.
      :param options: options given to lower pytoml module.
      '''
  
      try:
          if not isinstance(stream_or_string, (bytes, six.string_types)):
              return toml.load(stream_or_string, **options)
  
          if isinstance(stream_or_string, bytes):
              stream_or_string = stream_or_string.decode('utf-8')
  
          return toml.loads(stream_or_string)
      except Exception as error:
          raise DeserializationError(error)
docs: Deserialize from TOML into Python data structure.
  
      :param stream_or_string: toml stream or string to deserialize.
      :param options: options given to lower pytoml module.