code: def on_ui_train_tabs(callback):
      """register a function to be called when the UI is creating new tabs for the train tab.
      Create your new tabs with gr.Tab.
      """
      add_callback(callback_map["callbacks_ui_train_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 30 for calling a global function with example usage: on_ui_train_tabs(callback) without return types