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