code: def on_list_optimizers(callback):
      """register a function to be called when UI is making a list of cross attention optimization options.
      The function will be called with one argument, a list, and shall add objects of type modules.sd_hijack_optimizations.SdOptimization
      to it."""
  
      add_callback(callback_map["callbacks_list_optimizers"], callback)
  
imports: import inspect
  import os
  from collections import namedtuple
  from typing import Optional, Any
  from fastapi import FastAPI
  from gradio import Blocks
  from modules import errors, timer
label_desc: Use image node_id 44 for calling a global function with example usage: on_list_optimizers(callback) without return types