class_docstr: A registry to map strings to classes.
  
  Registered object could be built from registry.
  Example:
      >>> MODELS = Registry('models')
      >>> @MODELS.register_module()
      >>> class ResNet:
      >>>     pass
      >>> resnet = MODELS.build(dict(type='ResNet'))
  
  Please refer to
  https://mmcv.readthedocs.io/en/latest/understand_mmcv/registry.html for
  advanced usage.
  
  Args:
      name (str): Registry name.
      build_func(func, optional): Build function to construct instance from
          Registry, func:`build_from_cfg` is used if neither ``parent`` or
          ``build_func`` is specified. If ``parent`` is specified and
          ``build_func`` is not given,  ``build_func`` will be inherited
          from ``parent``. Default: None.
      parent (Registry, optional): Parent registry. The class registered in
          children registry could be built from parent. Default: None.
      scope (str, optional): The scope of registry. It is the key to search
          for children registry. If not specified, scope will be the name of
          the package where class is defined, e.g. mmdet, mmcls, mmseg.
          Default: None.
docstr: Get the registry record.
  
  Args:
      key (str): The class name in string format.
  
  Returns:
      class: The corresponding class.
docstr_tok: ["Get","the","registry","record",".","Args",":","key","(","str",")",":","The","class","name","in","string","format",".","Returns",":","class",":","The","corresponding","class","."]
code: def get(self, key):
      """Get the registry record.
  
      Args:
          key (str): The class name in string format.
  
      Returns:
          class: The corresponding class.
      """
      scope, real_key = self.split_scope_key(key)
      if scope is None or scope == self._scope:
          # get from self
          if real_key in self._module_dict:
              return self._module_dict[real_key]
      else:
          # get from self._children
          if scope in self._children:
              return self._children[scope].get(real_key)
          else:
              # goto root
              parent = self.parent
              while parent.parent is not None:
                  parent = parent.parent
              return parent.get(key)
  
imports: import inspect
  import warnings
  from functools import partial
  from .misc import is_seq_of
label_desc: Use image node_id 11 for calling the Registry obj's underlying member method code with example usage: obj.get(key) and returns: self, self, parent