code: def test_tpe_finds_constrained_solution(self):
      max_evals = 150
  
      # (2, 7), (2, 30), (2, 100), (5, 30), (5, 100), (20, 100)
      for lower, upper in zip(
          [2, 2, 2, 5, 5, 20], [7, 30, 100, 30, 100, 100]
      ):
          best = fmin(
              self.objective,
              space=hp.randint("t", lower, upper),
              algo=tpe.suggest,
              rstate=np.random.default_rng(4),
              max_evals=max_evals,
          )
          expected = [i for i in [3, 10, 50] if lower <= i < upper]
          assert best["t"] in expected
  
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 6 for calling the TestSimpleFMin obj's underlying member method code with example usage: obj.test_tpe_finds_constrained_solution() without return types