code: def on_infotext_pasted(callback):
      """register a function to be called before applying an infotext.
      The callback is called with two arguments:
         - infotext: str - raw infotext.
         - result: dict[str, any] - parsed infotext parameters.
      """
      add_callback(callback_map["callbacks_infotext_pasted"], 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 41 for calling a global function with example usage: on_infotext_pasted(callback) without return types