code: def __init__(self, txt2img_preview_params):
      self.txt2img_preview_params = txt2img_preview_params
  
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 1 to create a new UiTrainTabParams object  with example: obj = UiTrainTabParams(txt2img_preview_params)