code: def _list_img_paths(root_dir: str) -> List[str]:
      return [
          os.path.join(root_dir, f)
          for f in tf.io.gfile.listdir(root_dir)
          if any(
              f.lower().endswith(ext) for ext in _SUPPORTED_IMAGE_FORMAT
          )
      ]
  
imports: from __future__ import annotations
  import collections
  import os
  import random
  from typing import Dict, List, NoReturn, Optional, Tuple
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import decode
  from tensorflow_datasets.core import features
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils import version
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: _list_img_paths(root_dir) and returns: unknown