code: def register_pass(
      namespace: Text,
      override: bool = False,
      name: Optional[Text] = None,
  ):
      """
      namespaces like {'common', 'nn_backend', <other-backends>, <other-frontends>}
  
      Params:
          override: indicate the graph pass can override an existing pass with the same name.
          name: name of the graph pass. Default to class name if not provided
      """
  
      def class_wrapper(pass_cls: Type[AbstractGraphPass]):
          PASS_REGISTRY.add(namespace, pass_cls, override, name)
          return pass_cls
  
      return class_wrapper
  
file_path: coremltools/coremltools/converters/mil/mil/passes/pass_registry.py
imports: import inspect
  from typing import Dict, Optional, Text, Type
  from coremltools import _logger
  from coremltools.converters.mil.mil.passes.graph_pass import AbstractGraphPass
label_desc: Use image node_id 1 for calling a global function with example usage: register_pass(namespace, override, name) and returns: class_wrapper, pass_cls