def test_custom_structure() -> None:
        """Test handling of custom directory structures."""
        input_path = Path("/custom/path/MyData/category/split/image.png")
        output_path = Path("./out")
        result = generate_output_filename(input_path, output_path, "MyData")
        assert result == Path("./out/category/split/image.png")
Test handling of custom directory structures.
tests/unit/data/utils/test_path.py