code: def cleanup_models():
      # This code could probably be more efficient if we used a tuple list or something to store the src/destinations
      # and then enumerate that, but this works for now. In the future, it'd be nice to just have every "model" scaler
      # somehow auto-register and just do these things...
      root_path = script_path
      src_path = models_path
      dest_path = os.path.join(models_path, "Stable-diffusion")
      move_files(src_path, dest_path, ".ckpt")
      move_files(src_path, dest_path, ".safetensors")
      src_path = os.path.join(root_path, "ESRGAN")
      dest_path = os.path.join(models_path, "ESRGAN")
      move_files(src_path, dest_path)
      src_path = os.path.join(models_path, "BSRGAN")
      dest_path = os.path.join(models_path, "ESRGAN")
      move_files(src_path, dest_path, ".pth")
      src_path = os.path.join(root_path, "gfpgan")
      dest_path = os.path.join(models_path, "GFPGAN")
      move_files(src_path, dest_path)
      src_path = os.path.join(root_path, "SwinIR")
      dest_path = os.path.join(models_path, "SwinIR")
      move_files(src_path, dest_path)
      src_path = os.path.join(
          root_path,
          "repositories/latent-diffusion/experiments/pretrained_models/",
      )
      dest_path = os.path.join(models_path, "LDSR")
      move_files(src_path, dest_path)
  
file_path: stable-diffusion-webui/modules/modelloader.py
imports: from __future__ import annotations
  import os
  import shutil
  import importlib
  from urllib.parse import urlparse
  from modules import shared
  from modules.upscaler import Upscaler, UpscalerLanczos, UpscalerNearest, UpscalerNone
  from modules.paths import script_path, models_path
label_desc: Use image node_id 4 for calling a global function with example usage: cleanup_models() without return types