code: def __init__(self):
      self.pages = None
      """gradio HTML components related to extra networks' pages"""
  
      self.page_contents = None
      """HTML content of the above; empty initially, filled when extra pages have to be shown"""
  
      self.stored_extra_pages = None
  
      self.button_save_preview = None
      self.preview_target_filename = None
  
      self.tabname = None
  
imports: import functools
  import os.path
  import urllib.parse
  from pathlib import Path
  from modules import shared, ui_extra_networks_user_metadata, errors, extra_networks
  from modules.images import read_info_from_image, save_image_with_geninfo
  import gradio
  import json
  import html
  from fastapi.exceptions import HTTPException
  from modules.generation_parameters_copypaste import image_from_url_text
  from modules.ui_components import ToolButton
label_desc: Use image node_id 1 to create a new ExtraNetworksUi object  with example: obj = ExtraNetworksUi()