code: def object_hook(obj):
          
          try:
              if '__type' in obj:
                  obj_type = obj['__type']
                  cls = getattr(cloud_inquisitor.schema, obj_type)
                  if hasattr(cls, 'from_json'):
                      return cls.from_json(obj)
  
              key, value = next(iter(obj.items()))
              if key == ' t':
                  return tuple(value)
              elif key == ' u':
                  return uuid.UUID(value)
              elif key == ' b':
                  return b64decode(value)
              elif key == ' m':
                  return Markup(value)
              elif key == ' d':
                  return parse_date(value)
  
              return obj
          except Exception:
              log.exception('Error during data deserialization')
docs: Checks to see if the `__type`-hinting field is available in the object being de-serialized. If present, and
          the class referenced has a `from_json` function it will return the generated object, else a standard dic
          will be returned
  
          Args:
              obj: Object to be deserialized
  
          Returns:
              Deserialized object or regular python objec