code: def get_optimizer(name):
      """Return the optimizer instance registered with the given name.
  
      Args:
          name (str): Name of the optimizer in the registry.
  
      Raises:
          Exception: If the optimizer with the given name is not found in the registry.
  
      Returns:
          OptimizerPass: The optimizer from the registry.
      """
      if name in optimizer_map:
          return optimizer_map[name]
      else:
          raise Exception(f"Unknown optimizer: {name}")
  
imports: import importlib
  import inspect
  import os
  from hls4ml.utils.string_utils import convert_to_snake_case
label_desc: Use image node_id 8 for calling a global function with example usage: get_optimizer(name) and returns: optimizer_map