code: def create_buttons(tabs_list):
      buttons = {}
      for tab in tabs_list:
          buttons[tab] = gr.Button(
              f"Send to {tab}", elem_id=f"{tab}_tab"
          )
      return buttons
  
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 6 for calling a global function with example usage: create_buttons(tabs_list) and returns: buttons