code: def test_subset_categorical_reproduce():
      # Tests for reproducibility in categorical stratified subsetting
      for i in range(100):
          y = np.random.randint(low=1, high=10, size=1000)
          size = 100
  
          ss1 = stratified_subset(y, size, groups=10, cat=True, seed=i)
          ss2 = stratified_subset(y, size, groups=10, cat=True, seed=i)
  
          assert np.all(ss1 == ss2)
  
imports: from miceforest.utils import stratified_subset
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_subset_categorical_reproduce() without return types