code: def test_constant_fn_rand():
      space = hp.choice(
          "preprocess_choice",
          [
              {
                  "pwhiten": hp.pchoice(
                      "whiten_randomPCA", [(0.3, False), (0.7, True)]
                  )
              },
              {"palgo": False},
              {"pthree": 7},
          ],
      )
      fmin(fn=lambda x: 1, space=space, algo=rand.suggest, max_evals=50)
  
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 a global function with example usage: test_constant_fn_rand() without return types