code: def create_item(self, name, index=None, enable_filter=True):
      checkpoint: sd_models.CheckpointInfo = (
          sd_models.checkpoint_aliases.get(name)
      )
      if checkpoint is None:
          return
  
      path, ext = os.path.splitext(checkpoint.filename)
      return {
          "name": checkpoint.name_for_extra,
          "filename": checkpoint.filename,
          "shorthash": checkpoint.shorthash,
          "preview": self.find_preview(path),
          "description": self.find_description(path),
          "search_term": self.search_terms_from_path(
              checkpoint.filename
          )
          + " "
          + (checkpoint.sha256 or ""),
          "onclick": '"'
          + html.escape(
              f"""return selectCheckpoint({quote_js(name)})"""
          )
          + '"',
          "local_preview": f"{path}.{shared.opts.samples_format}",
          "metadata": checkpoint.metadata,
          "sort_keys": {
              "default": index,
              **self.get_sort_keys(checkpoint.filename),
          },
      }
  
file_path: stable-diffusion-webui/modules/ui_extra_networks_checkpoints.py
imports: import html
  import os
  from modules import shared, ui_extra_networks, sd_models
  from modules.ui_extra_networks import quote_js
  from modules.ui_extra_networks_checkpoints_user_metadata import CheckpointUserMetadataEditor
label_desc: Use image node_id 3 for calling the ExtraNetworksPageCheckpoints obj's underlying member method code with example usage: obj.create_item(name, index, enable_filter) and returns: dict