code: def gen_callback(index):
      @app.callback(
          Output(f"output-{index}", "children"),
          Input(f"button-{index}", "n_clicks"),
          background=True,
          prevent_initial_call=True,
      )
      def callback_name(_):
          return f"Clicked on {index}"
  
label_desc: Use image node_id 1 for calling a global function with example usage: gen_callback(index) and returns: str, index