code: def register_transform(name: str, bypass_checks=False):
      """Registers a :class:`ClassyTransform` subclass.
  
      This decorator allows Classy Vision to instantiate a subclass of
      :class:`ClassyTransform` from a configuration file, even if the class itself is not
      part of the Classy Vision framework. To use it, apply this decorator to a
      ClassyTransform subclass like this:
  
      .. code-block:: python
  
        @register_transform("my_transform")
        class MyTransform(ClassyTransform):
            ...
  
      To instantiate a transform from a configuration file, see
      :func:`build_transform`."""
  
      def register_transform_cls(cls: Callable[..., Callable]):
          if not bypass_checks:
              if name in TRANSFORM_REGISTRY:
                  msg = "Cannot register duplicate transform ({}). Already registered at \n{}\n"
                  raise ValueError(
                      msg.format(name, TRANSFORM_REGISTRY_TB[name])
                  )
  
              if hasattr(transforms, name) or (name in TRANSFORM_VIDEO):
                  raise ValueError(
                      "{} has existed in torchvision.transforms, Please change the name!".format(
                          name
                      )
                  )
  
          TRANSFORM_REGISTRY[name] = cls
          tb = "".join(traceback.format_stack())
          TRANSFORM_REGISTRY_TB[name] = tb
          return cls
  
      return register_transform_cls
  
file_path: ClassyVision/classy_vision/dataset/transforms/__init__.py
imports: import copy
  import traceback
  from pathlib import Path
  from typing import Any, Callable, Dict, List
  import torchvision.transforms
  from classy_vision.generic.registry_utils import import_all_modules
  from classy_vision.generic.util import log_class_usage
  from .classy_transform import ClassyTransform
  from .lighting_transform import LightingTransform
  from .util import ApplyTransformToKey
  from .util import ImagenetAugmentTransform
  from .util import ImagenetNoAugmentTransform
  from .util import GenericImageTransform
  from .util import TupleToMapTransform
label_desc: Use image node_id 3 for calling a global function with example usage: register_transform(name, bypass_checks) and returns: register_transform_cls, cls