code: def test_even_splits(num_examples, n, drop_remainder, expected):
      split_infos = splits_lib.SplitDict(
          split_infos=[
              splits_lib.SplitInfo(
                  name="train",
                  shard_lengths=[num_examples],
                  num_bytes=0,
                  filename_template=_filename_template("train"),
              ),
          ]
      )
  
      subsplits = subsplits_utils.even_splits(
          "train", n, drop_remainder=drop_remainder
      )
  
      file_instructions = [
          split_infos[s].file_instructions for s in subsplits
      ]
      expected_file_instructions = [
          split_infos[f"train{s}"].file_instructions for s in expected
      ]
      assert file_instructions == expected_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 2 for calling a global function with example usage: test_even_splits(num_examples, n, drop_remainder, expected) without return types