code: def test_sample_deterministic():
      aa = as_apply([0, 1])
      print(aa)
      dd = sample(aa, np.random.default_rng(3))
      assert dd == (0, 1)
  
file_path: hyperopt/hyperopt/pyll/tests/test_stochastic.py
imports: import numpy
  from hyperopt.pyll import scope, as_apply, rec_eval
  from hyperopt.pyll.stochastic import recursive_set_rng_kwarg, sample
label_desc: Use image node_id 3 for calling a global function with example usage: test_sample_deterministic() without return types