code: def test_build_single():
      assert _build("mnist") == ["mnist"]
      assert _build("mnist:3.0.1") == ["mnist"]
      # Keyword arguments also possible
      assert _build("--datasets mnist") == ["mnist"]
  
      with pytest.raises(tfds.core.registered.DatasetNotFoundError):
          _build("unknown_dataset")
  
      with pytest.raises(
          AssertionError, match="cannot be loaded at version 1.0.0"
      ):
          _build("mnist:1.0.0")  # Can only built the last version
  
      with pytest.raises(ValueError, match="not have config"):
          _build("mnist --config_idx 0")
  
imports: import contextlib
  import os
  import pathlib
  from typing import Dict, Iterator, List, Optional
  from unittest import mock
  from absl.testing import parameterized
  from etils import epath
  import pytest
  import tensorflow_datasets
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import download
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import file_utils
  from tensorflow_datasets.scripts.cli import build
  from tensorflow_datasets.scripts.cli import main
label_desc: Use image node_id 4 for calling a global function with example usage: test_build_single() without return types