code: def get_new_location(path):
      path = Path(path)
      # get rid of the first part "result_images", and add the new relative
      # location inside tests/baseline_images
      return Path("tests", "baseline_images", *path.parts[1:])
  
imports: from pathlib import Path
  from glob import glob
  import shutil
label_desc: Use image node_id 2 for calling a global function with example usage: get_new_location(path) and returns: Path