code: def refresh_checkpoints():
      import modules.sd_models
  
      return modules.sd_models.list_models()
  
file_path: stable-diffusion-webui/modules/shared_items.py
imports: import sys
  from modules.shared_cmd_options import cmd_opts
label_desc: Use image node_id 9 for calling a global function with example usage: refresh_checkpoints() and returns: modules