code: def test_add_tfds_id_as_supervised(
      dummy_dataset: dataset_builder.DatasetBuilder,
  ):
      """Tests `add_tfds_id=True` with `as_supervised=True`."""
      read_config = read_config_lib.ReadConfig(add_tfds_id=True)
      ds = dummy_dataset.as_dataset(
          split="train",
          read_config=read_config,
          as_supervised=True,
      )
      # `add_tfds_id=True` is ignored when `as_supervised=True`
      assert ds.element_spec == (
          tf.TensorSpec(shape=(), dtype=tf.int64),
          tf.TensorSpec(shape=(), dtype=tf.int64),
      )
  
file_path: datasets/tensorflow_datasets/core/dataset_builder_read_test.py
imports: from unittest import mock
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_utils
  from tensorflow_datasets.core import logging
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import read_config
label_desc: Use image node_id 2 for calling a global function with example usage: test_add_tfds_id_as_supervised(dummy_dataset) without return types