code: def _get_dataset_dir(
      builder_dir: epath.Path,
      *,
      version_str: str,
      config_name: Optional[str] = None,
  ) -> epath.Path:
      """Returns the path for the given dataset, config and version."""
      dataset_dir = builder_dir
      if config_name:
          dataset_dir = dataset_dir / config_name
      return dataset_dir / version_str
  
imports: import functools
  import os
  import typing
  from typing import Any, List, Optional, Tuple, Type
  from etils import epath
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import logging
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.features import feature
  from tensorflow_datasets.core.proto import dataset_info_pb2
  from tensorflow_datasets.core.utils import error_utils
  from tensorflow_datasets.core.utils import file_utils
  from tensorflow_datasets.core.utils import version
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: _get_dataset_dir(builder_dir) and returns: unknown