code: def test_generate_example():
      tf_mock = mock.Mock()
      tf_mock.gfile.GFile.return_value = _VALID_INPUT
      expected_examples = []
  
      dataset = DummyConllUDataset()
  
      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,
                  {
                      "idx": "VIT-9558",
                      "text": "Il futuro.",
                      "tokens": ["Il", "futuro", "."],
                      "lemmas": ["il", "futuro", "."],
                      "upos": ["DET", "NOUN", "PUNCT"],
                      "xpos": ["RD", "S", "FS"],
                      "feats": [
                          "{'Definite': 'Def', 'Gender': 'Masc', 'Number': 'Sing', "  # pylint:disable=implicit-str-concat
                          "'PronType': 'Art'}",
                          "{'Gender': 'Masc', 'Number': 'Sing'}",
                          "None",
                      ],
                      "head": ["2", "0", "2"],
                      "deprel": ["det", "root", "punct"],
                      "deps": ["None", "None", "None"],
                      "misc": ["None", "{'SpaceAfter': 'No'}", "None"],
                  },
              ),
              (
                  1,
                  {
                      "idx": "VIT-9478",
                      "text": "il responsabile dell'ambiente",
                      "tokens": [
                          "il",
                          "responsabile",
                          "dell'",
                          "di",
                          "l'",
                          "ambiente",
                      ],
                      "lemmas": [
                          "il",
                          "responsabile",
                          "_",
                          "di",
                          "il",
                          "ambiente",
                      ],
                      "upos": [
                          "DET",
                          "NOUN",
                          "_",
                          "ADP",
                          "DET",
                          "NOUN",
                      ],
                      "xpos": ["RD", "S", "None", "E", "RD", "S"],
                      "feats": [
                          "{'Definite': 'Def', 'Gender': 'Masc', 'Number': 'Sing', "  # pylint:disable=implicit-str-concat
                          "'PronType': 'Art'}",
                          "{'Number': 'Sing'}",
                          "None",
                          "None",
                          "{'Definite': 'Def', 'Number': 'Sing', 'PronType': 'Art'}",
                          "{'Gender': 'Masc', 'Number': 'Sing'}",
                      ],
                      "head": ["3", "1", "None", "6", "6", "3"],
                      "deprel": [
                          "det",
                          "nsubj",
                          "_",
                          "case",
                          "det",
                          "nmod",
                      ],
                      "deps": [
                          "None",
                          "None",
                          "None",
                          "None",
                          "None",
                          "None",
                      ],
                      "misc": [
                          "None",
                          "None",
                          "{'SpaceAfter': 'No'}",
                          "None",
                          "None",
                          "None",
                      ],
                  },
              ),
          ]
  
          assert examples == expected_examples
  
          for _, example in examples:
              assert len(example) == len(
                  conllu_lib.UNIVERSAL_DEPENDENCIES_FEATURES
              )
  
      assert len(examples) == 2
  
imports: import textwrap
  from unittest import mock
  from etils import epath
  import pytest
  from tensorflow_datasets.core import lazy_imports_lib
  from tensorflow_datasets.core.dataset_builders.conll import conllu_dataset_builder
  from tensorflow_datasets.core.dataset_builders.conll import conllu_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