code: def define_from_schema(cls, connection):
      meta = connection.request("GET %s" % cls._schema_endpoint_)
  
      if not hasattr(meta, "fields"):
          raise H2OServerError(
              "Unexpected API output. Please verify server url and port. Response is '%s'"
              % meta
          )
  
      cls_vars = vars(cls).keys()
      for attr, dyn in cls._schema_attrs_.items():
          if (
              dyn and attr in cls_vars
          ):  # to not delete attributes that were not dynamically added in the current class
              delattr(cls, attr)
      cls._schema_attrs_ = {}
  
      for f in meta.fields:
          name = f.name
          if name not in cls._ignored_schema_keys_:
              if hasattr(cls, name):
                  cls._schema_attrs_[name] = False
              else:
                  cls._schema_attrs_[name] = True
                  setattr(
                      cls,
                      name,
                      property(
                          partial(cls.__getitem__, name=name),
                          doc=f.help,
                      ),
                  )
  
file_path: h2o-3/h2o-py/h2o/schemas/schema.py
imports: from h2o.utils.compatibility import *
  from functools import partial
  import h2o
  from h2o.exceptions import H2OConnectionError, H2OServerError
label_desc: Use image node_id 1 for calling the H2OSchema obj's underlying member method code with example usage: obj.define_from_schema(cls, connection) without return types