code: def test_random_splitter(records):
      data_splitter = RandomSplitter([0.6, 0.2, 0.2], seed=42)
      splits = data_splitter(records)
      np.testing.assert_equal(
          splits, [["file2", "file4"], ["file1"], ["file3"]]
      )
  
file_path: icevision/tests/data/test_record_collection.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_random_splitter(records) without return types