code: def test_basic():
      space = hp.randint("a", 5)
      x = np.zeros(5)
      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 x:
          assert 100 < i < 300
  
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 1 for calling a global function with example usage: test_basic() without return types