code: def getschemacls(resource, besteffort=False):
      
      return _SCHEMAFACTORY.getschemacls(
          resource=resource, besteffort=besteffort
      )
docs: Get schema class related to input resource.
  
      :param resource: resource from which get schema class.
      :param bool besteffort: if True (default) try a best effort in parsing
              the inheritance tree of resource if resource is a class.
      :rtype: type