code: def extract_optimizers_from_object(clazz):
      optimizers = {}
      optimizer_list = [
          func
          for func in dir(clazz)
          if callable(getattr(clazz, func))
          and hasattr(getattr(clazz, func), "_condition")
      ]
      for opt_name in optimizer_list:
          func = getattr(clazz, opt_name)
          if func._condition is None:
              opt = ModelOptimizerPass(name=opt_name, transform=func)
          elif inspect.isclass(func._condition):
              opt = LayerOptimizerPass(
                  name=opt_name,
                  layer_class=func._condition,
                  transform=func,
              )
          else:
              opt = WrappedOptimizerPass(
                  name=opt_name,
                  condition=func._condition,
                  transform=func,
              )
          optimizers[opt_name] = opt
  
      return optimizers
  
imports: import importlib
  import inspect
  import os
  from hls4ml.utils.string_utils import convert_to_snake_case
label_desc: Use image node_id 5 for calling a global function with example usage: extract_optimizers_from_object(clazz) and returns: optimizers