code: def work(self):
      bandit = self.bandit
      assert bandit.name is not None
      algo = partial(anneal.suggest)
      iters_thresholds = self.iters_thresholds.get(bandit.name, 50)
  
      trials = Trials()
      fmin(
          fn=passthrough,
          space=self.bandit.expr,
          trials=trials,
          algo=algo,
          max_evals=iters_thresholds,
          rstate=np.random.default_rng(8),
      )
      assert len(trials) == iters_thresholds
  
      rtrials = Trials()
      fmin(
          fn=passthrough,
          space=self.bandit.expr,
          trials=rtrials,
          algo=rand.suggest,
          max_evals=iters_thresholds,
          rstate=np.random.default_rng(8),
      )
  
      thresh = self.thresholds[bandit.name]
      assert min(trials.losses()) < thresh
  
file_path: hyperopt/hyperopt/tests/unit/test_anneal.py
imports: from functools import partial
  import unittest
  import numpy
  from hyperopt import anneal
  from hyperopt import rand
  from hyperopt import Trials, fmin
  from .test_domains import CasePerDomain
label_desc: Use image node_id 3 for calling the TestItAtLeastSortOfWorks obj's underlying member method code with example usage: obj.work() without return types