code: def get_ref_image(path):
      path = Path(path)
      return path.with_name(path.name.replace("-failed-diff", ""))
  
imports: from pathlib import Path
  from glob import glob
  import shutil
label_desc: Use image node_id 1 for calling a global function with example usage: get_ref_image(path) and returns: path