code: def register(cls):
      """
      Register a given module class.
  
      Args:
          cls (type): Module class to be registered.
  
      Returns: cls
      """
      if cls.__name__ in global_config:
          raise ValueError(
              "Module class already registered: {}".format(cls.__name__)
          )
      if hasattr(cls, "__op__"):
          cls = make_partial(cls)
      global_config[cls.__name__] = extract_schema(cls)
      return cls
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  import importlib
  import os
  import sys
  import yaml
  import collections
  from .config.schema import SchemaDict, SharedConfig, extract_schema
  from .config.yaml_helpers import serializable
label_desc: Use image node_id 8 for calling a global function with example usage: register(cls) and returns: cls