class_docstr: Registers function or classes as a dict.
class_docstr_tok: ["Registers","function","or","classes","as","a","dict","."]
docstr: Register an object with a provided name
docstr_tok: ["Register","an","object","with","a","provided","name"]
code: def register_name(
      self,
      name: str,
      obj: X,
      info: tp.Optional[tp.Dict[tp.Hashable, tp.Any]] = None,
  ) -> None:
      """Register an object with a provided name"""
      if name in self:
          raise RuntimeError(f'Encountered a name collision "{name}"')
      self[name] = obj
      if info is not None:
          assert isinstance(info, dict)
          self._information[name] = info
  
file_path: nevergrad/nevergrad/common/decorators.py
imports: import typing
  import functools
label_desc: Use image node_id 3 for calling the Registry obj's underlying member method code with example usage: obj.register_name(name, obj, info) without return types