code: def create_item(self, name, index=None, enable_filter=True):
      embedding = (
          sd_hijack.model_hijack.embedding_db.word_embeddings.get(name)
      )
      if embedding is None:
          return
  
      path, ext = os.path.splitext(embedding.filename)
      return {
          "name": name,
          "filename": embedding.filename,
          "shorthash": embedding.shorthash,
          "preview": self.find_preview(path),
          "description": self.find_description(path),
          "search_term": self.search_terms_from_path(embedding.filename)
          + " "
          + (embedding.hash or ""),
          "prompt": quote_js(embedding.name),
          "local_preview": f"{path}.preview.{shared.opts.samples_format}",
          "sort_keys": {
              "default": index,
              **self.get_sort_keys(embedding.filename),
          },
      }
  
file_path: stable-diffusion-webui/modules/ui_extra_networks_textual_inversion.py
imports: import os
  from modules import ui_extra_networks, sd_hijack, shared
  from modules.ui_extra_networks import quote_js
label_desc: Use image node_id 3 for calling the ExtraNetworksPageTextualInversion obj's underlying member method code with example usage: obj.create_item(name, index, enable_filter) and returns: dict