code: def test_generate_corrupted_example():
      tf_mock = mock.Mock()
      tf_mock.gfile.GFile.return_value = _VALID_INPUT
      dataset = DummyConllDataset()
  
      error_line = "Winter NN B-NP"
      error_msg = (
          f"Mismatch in the number of features found in line: {error_line}\n\n"
          "Should be 4, but found 3"
      )
      with pytest.raises(ValueError, match=error_msg):
          with tfds.testing.MockFs() as fs:
              fs.add_file(path=_INPUT_PATH, content=_INVALID_INPUT)
              list(dataset._generate_examples(_INPUT_PATH))
  
file_path: datasets/tensorflow_datasets/core/dataset_builders/conll/conll_dataset_builder_test.py
imports: import textwrap
  from unittest import mock
  from etils import epath
  import pytest
  from tensorflow_datasets.core.dataset_builders.conll import conll_dataset_builder
  from tensorflow_datasets.core.dataset_builders.conll import conll_dataset_builder_utils
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling a global function with example usage: test_generate_corrupted_example() without return types