def test_existing_file_within_base_dir(dataset_path: Path) -> None:
        """Test ``validate_path`` returns the validated path for an existing file within the base directory."""
        file_path = dataset_path / "mvtecad/dummy/train/good/000.png"
        validated_path = validate_path(file_path, base_dir=dataset_path)
        assert validated_path == file_path.resolve()
Test ``validate_path`` returns the validated path for an existing file within the base directory.
tests/unit/data/utils/test_path.py