code: def before_component_callback(component, **kwargs):
      for c in callback_map["callbacks_before_component"]:
          try:
              c.callback(component, **kwargs)
          except Exception:
              report_exception(c, "before_component_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 15 for calling a global function with example usage: before_component_callback(component) without return types