code: def remove_callbacks_for_function(callback_func):
      for callback_list in callback_map.values():
          for callback_to_remove in [
              cb for cb in callback_list if cb.callback == callback_func
          ]:
              callback_list.remove(callback_to_remove)
  
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 25 for calling a global function with example usage: remove_callbacks_for_function(callback_func) without return types