code: def process_model_tag(tag):
      info = sd_models.get_closet_checkpoint_match(tag)
      assert info is not None, f"Unknown checkpoint: {tag}"
      return info.name
  
imports: import copy
  import random
  import shlex
  import modules.scripts
  import gradio
  from modules import sd_samplers, errors, sd_models
  from modules.processing import Processed, process_images
  from modules.shared import state
label_desc: Use image node_id 1 for calling a global function with example usage: process_model_tag(tag) and returns: info