code: def move_files(src_path: str, dest_path: str, ext_filter: str = None):
      try:
          os.makedirs(dest_path, exist_ok=True)
          if os.path.exists(src_path):
              for file in os.listdir(src_path):
                  fullpath = os.path.join(src_path, file)
                  if os.path.isfile(fullpath):
                      if ext_filter is not None:
                          if ext_filter not in file:
                              continue
                      print(
                          f"Moving {file} from {src_path} to {dest_path}."
                      )
                      try:
                          shutil.move(fullpath, dest_path)
                      except Exception:
                          pass
              if len(os.listdir(src_path)) == 0:
                  print(f"Removing empty folder: {src_path}")
                  shutil.rmtree(src_path, True)
      except Exception:
          pass
  
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 5 for calling a global function with example usage: move_files(src_path, dest_path, ext_filter) without return types