code: def _maybe_iterdir(path: epath.Path) -> Iterator[epath.Path]:
      """Same as `path.iterdir()`, but don't fail if path does not exist."""
      # Use try/except rather than `.exists()` to avoid an extra RPC call
      # per namespace
      try:
          for f in path.iterdir():
              yield f
      except (
          OSError,
          FileNotFoundError,
          PermissionError,
          tf.errors.NotFoundError,
          tf.errors.PermissionDeniedError,
      ) as e:
          pass
  
imports: import concurrent.futures
  import difflib
  import functools
  import os
  from typing import Any, Dict, FrozenSet, Iterable, Iterator, List, Type
  from absl import flags
  from absl import logging
  from etils import epath
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import read_only_builder
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core.community import register_base
  from tensorflow_datasets.core.utils import file_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _maybe_iterdir(path) without return types