code: def test_even_splits_add():
      # Compatibility of even_splits with other splits
  
      split_infos = splits_lib.SplitDict(
          split_infos=[
              splits_lib.SplitInfo(
                  name="train",
                  shard_lengths=[2, 3, 2, 3],  # 10
                  num_bytes=0,
                  filename_template=_filename_template("train"),
              ),
              splits_lib.SplitInfo(
                  name="test",
                  shard_lengths=[8],
                  num_bytes=0,
                  filename_template=_filename_template("test"),
              ),
              splits_lib.SplitInfo(
                  name="validation",
                  shard_lengths=[8],
                  filename_template=_filename_template("validation"),
                  num_bytes=0,
              ),
          ]
      )
  
      # Test to split multiple splits
      split = subsplits_utils.even_splits(
          "train", 3, drop_remainder=True
      )[0]
      split = split + "test"
  
      expected = "train[:3]+test"
  
      file_instructions = split_infos[split].file_instructions
      expected_file_instructions = split_infos[
          expected
      ].file_instructions
      assert file_instructions == expected_file_instructions
  
      # Test nested `even_splits`
      splits = subsplits_utils.even_splits("validation", n=2)
      splits = subsplits_utils.even_splits(splits[1], n=2)
      assert (
          split_infos[splits[0]].file_instructions
          == split_infos["validation[4:6]"].file_instructions
      )
      assert (
          split_infos[splits[1]].file_instructions
          == split_infos["validation[6:8]"].file_instructions
      )
  
file_path: datasets/tensorflow_datasets/core/subsplits_utils_test.py
imports: import pytest
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import subsplits_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_even_splits_add() without return types