code: def _as_path(nested_paths):
      return tree_utils.map_structure(epath.Path, nested_paths)
  
imports: import collections
  import hashlib
  import json
  import os
  import pickle
  from unittest import mock
  from absl.testing import parameterized
  from etils import epath
  import promise
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core.download import checksums
  from tensorflow_datasets.core.download import download_manager
  from tensorflow_datasets.core.download import downloader
  from tensorflow_datasets.core.download import extractor
  from tensorflow_datasets.core.download import resource
  from tensorflow_datasets.core.utils import tree_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _as_path(nested_paths) and returns: tree_utils