class_docstr: Tests for wiki_table_text dataset.
class_docstr_tok: ["Tests","for","wiki_table_text","dataset","."]
code: def test_generate_examples(self):
      expected_examples = [
          {
              "input_text": {
                  "table": [
                      {
                          "column_header": "subj_title_",
                          "row_number": 1,
                          "content": "central bank of russia",
                      },
                      {
                          "column_header": "subj_subtitle",
                          "row_number": 1,
                          "content": "chairmen",
                      },
                      {
                          "column_header": "name",
                          "row_number": 1,
                          "content": "viktor gerashchenko",
                      },
                      {
                          "column_header": "year",
                          "row_number": 1,
                          "content": "1992—1994",
                      },
                  ]
              },
              "target_text": (
                  "viktor gerashchenko is the chairman of central bank of russia "
                  "during 1992 to 1994"
              ),
          },
          {
              "input_text": {
                  "table": [
                      {
                          "column_header": "subj_title_",
                          "row_number": 1,
                          "content": "ace frehley",
                      },
                      {
                          "column_header": "subj_subtitle",
                          "row_number": 1,
                          "content": "discography",
                      },
                      {
                          "column_header": "year",
                          "row_number": 1,
                          "content": "2006",
                      },
                      {
                          "column_header": "title",
                          "row_number": 1,
                          "content": "greatest hits live",
                      },
                  ]
              },
              "target_text": (
                  "greatest hits live is a discography of ace frehlely in 2006"
              ),
          },
      ]
      dataset = wiki_table_text.WikiTableText()
  
      def mock_open(*_):
          current_path = epath.Path(__file__).parent
          return open(current_path / "test_data/examples.csv")
  
      with epath.testing.mock_epath(open=mock_open):
          examples = list(dataset._generate_examples(""))
          for i, (_, example) in enumerate(examples):
              self.assertCountEqual(example, expected_examples[i])
          assert len(examples) == len(expected_examples)
  
imports: from etils import epath
  import tensorflow_datasets.public_api
  from tensorflow_datasets.structured.wiki_table_text import wiki_table_text
label_desc: Use image node_id 1 for calling the WikiTableTextTest obj's underlying member method code with example usage: obj.test_generate_examples() and returns: open