code: def create_item(self, name, index=None, enable_filter=True):
      lora_on_disk = networks.available_networks.get(name)
      if lora_on_disk is None:
          return
  
      path, ext = os.path.splitext(lora_on_disk.filename)
  
      alias = lora_on_disk.get_alias()
  
      item = {
          "name": name,
          "filename": lora_on_disk.filename,
          "shorthash": lora_on_disk.shorthash,
          "preview": self.find_preview(path),
          "description": self.find_description(path),
          "search_term": self.search_terms_from_path(
              lora_on_disk.filename
          )
          + " "
          + (lora_on_disk.hash or ""),
          "local_preview": f"{path}.{shared.opts.samples_format}",
          "metadata": lora_on_disk.metadata,
          "sort_keys": {
              "default": index,
              **self.get_sort_keys(lora_on_disk.filename),
          },
          "sd_version": lora_on_disk.sd_version.name,
      }
  
      self.read_user_metadata(item)
      activation_text = item["user_metadata"].get("activation text")
      preferred_weight = item["user_metadata"].get(
          "preferred weight", 0.0
      )
      item["prompt"] = (
          quote_js(f"<lora:{alias}:")
          + " + "
          + (
              str(preferred_weight)
              if preferred_weight
              else "opts.extra_networks_default_multiplier"
          )
          + " + "
          + quote_js(">")
      )
  
      if activation_text:
          item["prompt"] += " + " + quote_js(" " + activation_text)
  
      sd_version = item["user_metadata"].get("sd version")
      if sd_version in network.SdVersion.__members__:
          item["sd_version"] = sd_version
          sd_version = network.SdVersion[sd_version]
      else:
          sd_version = lora_on_disk.sd_version
  
      if shared.opts.lora_show_all or not enable_filter:
          pass
      elif sd_version == network.SdVersion.Unknown:
          model_version = (
              network.SdVersion.SDXL
              if shared.sd_model.is_sdxl
              else network.SdVersion.SD2
              if shared.sd_model.is_sd2
              else network.SdVersion.SD1
          )
          if (
              model_version.name
              in shared.opts.lora_hide_unknown_for_versions
          ):
              return None
      elif (
          shared.sd_model.is_sdxl
          and sd_version != network.SdVersion.SDXL
      ):
          return None
      elif (
          shared.sd_model.is_sd2 and sd_version != network.SdVersion.SD2
      ):
          return None
      elif (
          shared.sd_model.is_sd1 and sd_version != network.SdVersion.SD1
      ):
          return None
  
      return item
  
file_path: stable-diffusion-webui/extensions-builtin/Lora/ui_extra_networks_lora.py
imports: import os
  import network
  import networks
  from modules import shared, ui_extra_networks
  from modules.ui_extra_networks import quote_js
  from ui_edit_user_metadata import LoraUserMetadataEditor
label_desc: Use image node_id 3 for calling the ExtraNetworksPageLora obj's underlying member method code with example usage: obj.create_item(name, index, enable_filter) and returns: item, None, None, None, None