code: def __init__(self, ui, tabname, page):
      self.ui = ui
      self.tabname = tabname
      self.page = page
      self.id_part = (
          f"{self.tabname}_{self.page.id_page}_edit_user_metadata"
      )
  
      self.box = None
  
      self.edit_name_input = None
      self.button_edit = None
  
      self.edit_name = None
      self.edit_description = None
      self.edit_notes = None
      self.html_filedata = None
      self.html_preview = None
      self.html_status = None
  
      self.button_cancel = None
      self.button_replace_preview = None
      self.button_save = None
  
imports: import datetime
  import html
  import json
  import os.path
  import gradio
  from modules import generation_parameters_copypaste, images, sysinfo, errors, ui_extra_networks
label_desc: Use image node_id 1 to create a new UserMetadataEditor object  with example: obj = UserMetadataEditor(ui, tabname, page)