code: def model_loaded_callback(sd_model):
      for c in callback_map["callbacks_model_loaded"]:
          try:
              c.callback(sd_model)
          except Exception:
              report_exception(c, "model_loaded_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 5 for calling a global function with example usage: model_loaded_callback(sd_model) without return types