code: def test_basic2():
      space = hp.randint("a", 5, 15)
      x = np.zeros(15)
      rng = np.random.default_rng(123)
      for i in range(0, 1000):
          nesto = hyperopt.pyll.stochastic.sample(space, rng=rng)
          x[nesto] += 1
  
      print(x)
      for i in range(5):
          assert x[i] == 0
      for i in range(5, 15):
          assert 80 < x[i] < 120
  
file_path: hyperopt/hyperopt/tests/unit/test_randint.py
imports: import unittest
  from functools import partial
  import numpy
  from hyperopt import hp, Trials, fmin, rand, tpe
  import hyperopt.pyll.stochastic
label_desc: Use image node_id 2 for calling a global function with example usage: test_basic2() without return types