code: def test_seed(n, k, seed):
      """Test that seed is deterministic."""
      part = random_partition(n, k, seed)
      part2 = random_partition(n, k, seed)
  
      assert deep_equals(part, part2)
  
file_path: sktime/sktime/utils/tests/test_sampling.py
imports: import numpy
  import pytest
  from sktime.datasets import load_unit_test
  from sktime.datatypes import check_is_scitype
  from sktime.utils._testing.deep_equals import deep_equals
  from sktime.utils.sampling import random_partition, stratified_resample
label_desc: Use image node_id 2 for calling a global function with example usage: test_seed(n, k, seed) without return types