code: def get_single_card(
      page: str = "", tabname: str = "", name: str = ""
  ):
      from starlette.responses import JSONResponse
  
      page = next(
          iter([x for x in extra_pages if x.name == page]), None
      )
  
      try:
          item = page.create_item(name, enable_filter=False)
          page.items[name] = item
      except Exception as e:
          errors.display(e, "creating item for extra network")
          item = page.items.get(name)
  
      page.read_user_metadata(item)
      item_html = page.create_html_for_item(item, tabname)
  
      return JSONResponse({"html": item_html})
  
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 6 for calling a global function with example usage: get_single_card(page, tabname, name) and returns: JSONResponse