code: def test_split_generators(self):
      json_str = """
        [
          {
            "tripleset": [
              [
                "Mars Hill College",
                "JOINED",
                "1973"
              ],
              [
                "Mars Hill College",
                "LOCATION",
                "Mars Hill, North Carolina"
              ]
            ],
            "subtree_was_extended": true,
            "annotations": [
              {
                "source": "WikiSQL_decl_sents",
                "text": "A school from Mars Hill, North Carolina, joined in 1973."
              }
            ]
          }
        ]
      """
      expected_examples = [
          {
              "input_text": {
                  "table": [
                      {
                          "column_header": "subject",
                          "row_number": 0,
                          "content": "Mars Hill College",
                      },
                      {
                          "column_header": "predicate",
                          "row_number": 0,
                          "content": "JOINED",
                      },
                      {
                          "column_header": "object",
                          "row_number": 0,
                          "content": "1973",
                      },
                      {
                          "column_header": "subject",
                          "row_number": 1,
                          "content": "Mars Hill College",
                      },
                      {
                          "column_header": "predicate",
                          "row_number": 1,
                          "content": "LOCATION",
                      },
                      {
                          "column_header": "object",
                          "row_number": 1,
                          "content": "Mars Hill, North Carolina",
                      },
                  ]
              },
              "target_text": (
                  "A school from Mars Hill, North Carolina, joined in 1973."
              ),
          }
      ]
      dart_dataset = dart.Dart()
      with mock.patch.object(
          json, "load", return_value=json.loads(json_str)
      ), mock.patch.object(epath, "Path"):
          examples = list(dart_dataset._generate_examples(""))
          for i, (_, example) in enumerate(examples):
              self.assertCountEqual(example, expected_examples[i])
          assert len(examples) == len(expected_examples)
  
file_path: datasets/tensorflow_datasets/structured/dart/dart_test.py
imports: import json
  from unittest import mock
  from etils import epath
  import tensorflow_datasets.public_api
  from tensorflow_datasets.structured.dart import dart
label_desc: Use image node_id 1 for calling the DartTest obj's underlying member method code with example usage: obj.test_split_generators() without return types