code: def result_to_baseline():
      """
      Copy new or failing tests/result_images to tests/baseline_images
      """
      for image in new_test_images():
          new_baseline_image = baseline_path(image)
          new_baseline_image.parent.mkdir(parents=True, exist_ok=True)
          image.replace(new_baseline_image)
  
imports: from pathlib import Path
  from typing import Generator
label_desc: Use image node_id 3 for calling a global function with example usage: result_to_baseline() without return types