code: def as_path(path: PathLike) -> Path:
      """DEPRECATED. Please use `from etils import epath` with `epath.Path()`."""
      msg = py_utils.dedent(
          """
        `tfds.core.as_path` is deprecated. Pathlib API has been moved to a
        separate module. To migrate, use:
  
        ```
        from etils import epath
        path = epath.Path('gs://path/to/f.txt')
        ```
  
        Alternatively `tfds.core.Path` is an alias of `epath.Path`.
  
        Installation: `pip install etils[epath]`
  
        """
      )
      logging.warning(msg)
      return epath.Path(path)
  
imports: import collections
  import functools
  import os
  import re
  import time
  from typing import Iterator, List, Optional
  from absl import logging
  from etils import epath
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core.utils import docs
  from tensorflow_datasets.core.utils import py_utils
  from tensorflow_datasets.core.utils import read_config
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils import version
label_desc: Use image node_id 1 for calling a global function with example usage: as_path(path) and returns: epath