code: def register_pass(name, opt_cls, backend=None):
      """Register a new optimizer pass.
  
      Args:
          name (str): Name of the optimizer
          opt_cls (class): The class of the optimizer.
          backend (str, optional): Optional backend to register the optimizer to. If not None, the name of the backend
              will be appended to the name of the registered flow. Defaults to None.
  
      Raises:
          Exception: If the optimization pass has already been registered with the given name.
  
      Returns:
          str: The name of the registered optimizer.
      """
      name = _get_backend_name_prefix(name, backend)
  
      if name in optimizer_map:
          raise Exception(
              f"Optimization pass {name} already registered"
          )
  
      if inspect.isclass(opt_cls):
          opt = opt_cls()
      else:
          opt = opt_cls
  
      optimizer_map[name] = opt
  
      return name
  
imports: import importlib
  import inspect
  import os
  from hls4ml.utils.string_utils import convert_to_snake_case
label_desc: Use image node_id 7 for calling a global function with example usage: register_pass(name, opt_cls, backend) and returns: name