code: def setUp(self):
      self.space = hp.pchoice(
          "a", [(0.1, 0), (0.2, 1), (0.3, 2), (0.4, 3)]
      )
      self.trials = Trials()
  
file_path: hyperopt/hyperopt/tests/unit/test_pchoice.py
imports: from functools import partial
  import numpy
  import unittest
  from hyperopt import hp, Trials, fmin, tpe, anneal, rand
  import hyperopt.pyll.stochastic
label_desc: Use image node_id 1 for calling the TestSimpleFMin obj's underlying member method code with example usage: obj.setUp() without return types