code: def get_schema_from_type(resource_type):
      
      for cls_name, cls in class_registry._registry.items():
          try:
              if cls[0].opts.type_ == resource_type:
                  return cls[0]
          except Exception:
              pass
  
      raise Exception("Couldn't find schema for type: {}".format(resource_type))
docs: Retrieve a schema from the registry by his type
  
      :param str type_: the type of the resource
      :return Schema: the schema class