tfds.core.as_path

Create a generic pathlib.Path-like abstraction.

Depending on the input (e.g. gs:// url, ResourcePath,...), the system (Windows, Linux,...), the function will create the right pathlib-like abstraction.

path Pathlike object.

path The pathlib.Path-like abstraction.