code: def as_path(path: PathLike) -> tfds.core.ReadWritePath:
      """Convert str or pathlike object to tfds.core.ReadWritePath.
  
      Instead of pathlib.Paths, we use the TFDS path because they transparently
      support paths to GCS buckets such as "gs://kubric-public/GSO".
      """
      return tfds.core.as_path(path)
  
imports: import dataclasses
  import json
  import logging
  import imageio
  import numpy
  import png
  import tensorflow
  import tensorflow_datasets.public_api
  from typing import List, Dict, Union
label_desc: Use image node_id 12 for calling a global function with example usage: as_path(path) and returns: tfds