code: def test_constant_fn_tpe():
      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=tpe.suggest,
          max_evals=50,
          rstate=np.random.default_rng(44),
      )
  
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 2 for calling a global function with example usage: test_constant_fn_tpe() without return types