class_docstr: Registry for symbolic functions.
  
  The registry maintains a mapping from qualified names to symbolic functions.
  It is used to register new symbolic functions and to dispatch calls to
  the appropriate function.
docstr: Registers a symbolic function.
  
  Args:
      name: The qualified name of the function to register. In the form of 'domain::op'.
          E.g. 'aten::add'.
      opset: The opset version of the function to register.
      func: The symbolic function to register.
      custom: Whether the function is a custom function that overrides existing ones.
  
  Raises:
      ValueError: If the separator '::' is not in the name.
code: def register(
      self,
      name: str,
      opset: OpsetVersion,
      func: Callable,
      custom: bool = False,
  ) -> None:
      """Registers a symbolic function.
  
      Args:
          name: The qualified name of the function to register. In the form of 'domain::op'.
              E.g. 'aten::add'.
          opset: The opset version of the function to register.
          func: The symbolic function to register.
          custom: Whether the function is a custom function that overrides existing ones.
  
      Raises:
          ValueError: If the separator '::' is not in the name.
      """
      if "::" not in name:
          raise ValueError(
              f"The name must be in the form of 'domain::op', not '{name}'"
          )
      symbolic_functions = self._registry.setdefault(
          name, _SymbolicFunctionGroup(name)
      )
      if custom:
          symbolic_functions.add_custom(func, opset)
      else:
          symbolic_functions.add(func, opset)
  
imports: import warnings
  from typing import Callable, Collection, Dict, Generic, Optional, Sequence, Set, TypeVar, Union
  from torch.onnx import _constants, errors
  from torch.onnx._internal import _beartype
label_desc: Use image node_id 2 for calling the SymbolicRegistry obj's underlying member method code with example usage: obj.register(name, opset, func, custom) without return types