code: def new_test_images() -> Generator[Path, None, None]:
      """
      Get all test images that are failing or have no baseline
      """
      _exp, _fail = ("-expected.png", "-failed-diff.png")
      for d in result.iterdir():
          for png in d.glob("*.png"):
              if png.name.endswith(_exp) or png.name.endswith(_fail):
                  continue
  
              expected = png.with_name(f"{png.stem}{_exp}")
              failed = png.with_name(f"{png.stem}{_fail}")
  
              if failed.exists() or not expected.exists():
                  yield png
  
imports: from pathlib import Path
  from typing import Generator
label_desc: Use image node_id 1 for calling a global function with example usage: new_test_images() without return types