code: def test_generate_example():
      tf_mock = mock.Mock()
      tf_mock.gfile.GFile.return_value = _VALID_INPUT
      expected_examples = []
  
      dataset = DummyConllDataset()
  
      with tfds.testing.MockFs() as fs:
          fs.add_file(path=_INPUT_PATH, content=_VALID_INPUT)
          examples = list(dataset._generate_examples(_INPUT_PATH))
  
          expected_examples = [
              (
                  0,
                  {
                      "tokens": ["Winter", "is"],
                      "pos": ["NN", "VBZ"],
                      "chunks": ["B-NP", "B-VP"],
                      "ner": ["O", "O"],
                  },
              ),
              (
                  1,
                  {
                      "tokens": ["Air", "."],
                      "pos": ["NN", "."],
                      "chunks": ["I-NP", "O"],
                      "ner": ["O", "O"],
                  },
              ),
          ]
  
          assert examples == expected_examples
  
          for _, example in examples:
              assert len(example) == len(
                  conll_lib.CONLL_2003_ORDERED_FEATURES
              )
  
      assert len(examples) == 2
  
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 1 for calling a global function with example usage: test_generate_example() without return types