code: def ui_reorder_categories():
      from modules import scripts
  
      yield from ui_reorder_categories_builtin_items
  
      sections = {}
      for script in (
          scripts.scripts_txt2img.scripts
          + scripts.scripts_img2img.scripts
      ):
          if (
              isinstance(script.section, str)
              and script.section
              not in ui_reorder_categories_builtin_items
          ):
              sections[script.section] = 1
  
      yield from sections
  
      yield "scripts"
  
file_path: stable-diffusion-webui/modules/shared_items.py
imports: import sys
  from modules.shared_cmd_options import cmd_opts
label_desc: Use image node_id 13 for calling a global function with example usage: ui_reorder_categories() without return types