code: def on_ui_tabs(callback):
      """register a function to be called when the UI is creating new tabs.
      The function must either return a None, which means no new tabs to be added, or a list, where
      each element is a tuple:
          (gradio_component, title, elem_id)
  
      gradio_component is a gradio component to be used for contents of the tab (usually gr.Blocks)
      title is tab text displayed to user in the UI
      elem_id is HTML id for the tab
      """
      add_callback(callback_map["callbacks_ui_tabs"], callback)
  
imports: import inspect
  import os
  from collections import namedtuple
  from typing import Optional, Any
  from fastapi import FastAPI
  from gradio import Blocks
  from modules import errors, timer
label_desc: Use image node_id 29 for calling a global function with example usage: on_ui_tabs(callback) without return types