code: def bind_buttons(buttons, send_image, send_generate_info):
      """old function for backwards compatibility; do not use this, use register_paste_params_button"""
      for tabname, button in buttons.items():
          source_text_component = (
              send_generate_info
              if isinstance(send_generate_info, gr.components.Component)
              else None
          )
          source_tabname = (
              send_generate_info
              if isinstance(send_generate_info, str)
              else None
          )
  
          register_paste_params_button(
              ParamBinding(
                  paste_button=button,
                  tabname=tabname,
                  source_text_component=source_text_component,
                  source_image_component=send_image,
                  source_tabname=source_tabname,
              )
          )
  
imports: from __future__ import annotations
  import base64
  import io
  import json
  import os
  import re
  import gradio
  from modules.paths import data_path
  from modules import shared, ui_tempdir, script_callbacks, processing
  from PIL import Image
label_desc: Use image node_id 7 for calling a global function with example usage: bind_buttons(buttons, send_image, send_generate_info) without return types