def METHOD_NAME():
    from ctapipe.io.hdf5merger import split_h5path
    assert split_h5path("/") == ("/", "")
    assert split_h5path("/foo") == ("/", "foo")
    assert split_h5path("/foo/") == ("/", "foo")
    assert split_h5path("/foo/bar") == ("/foo", "bar")
    assert split_h5path("/foo/bar/") == ("/foo", "bar")
    assert split_h5path("/foo/bar/baz") == ("/foo/bar", "baz")
    with pytest.raises(ValueError, match="Path must start with /"):
        split_h5path("foo/bar")