code: def find_vae_near_checkpoint(checkpoint_file):
      checkpoint_path = os.path.basename(checkpoint_file).rsplit(
          ".", 1
      )[0]
      for vae_file in vae_dict.values():
          if os.path.basename(vae_file).startswith(checkpoint_path):
              return vae_file
  
      return None
  
imports: import os
  import collections
  from dataclasses import dataclass
  from modules import paths, shared, devices, script_callbacks, sd_models, extra_networks, lowvram, sd_hijack, hashes
  import glob
  from copy import deepcopy
label_desc: Use image node_id 9 for calling a global function with example usage: find_vae_near_checkpoint(checkpoint_file) and returns: None, vae_file