code: def radio_choices(
      comp,
  ):  # gradio 3.41 changes choices from list of values to list of pairs
      return [
          x[0] if isinstance(x, tuple) else x
          for x in getattr(comp, "choices", [])
      ]
  
file_path: stable-diffusion-webui/modules/ui_loadsave.py
imports: import json
  import os
  import gradio
  from modules import errors
  from modules.ui_components import ToolButton, InputAccordion
label_desc: Use image node_id 1 for calling a global function with example usage: radio_choices(comp) and returns: unknown