code: def infotext_pasted_callback(infotext: str, params: dict[str, Any]):
      for c in callback_map["callbacks_infotext_pasted"]:
          try:
              c.callback(infotext, params)
          except Exception:
              report_exception(c, "infotext_pasted")
  
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 18 for calling a global function with example usage: infotext_pasted_callback(infotext, params) without return types