code: def test_random_search_unbounded_error():
      with pytest.raises(TypeError):
          trials = strategies.generate_trials(
              RANDOM_SEARCH, FLAT_PARAMS, nb_trials=None
          )
  
imports: import pytest
  from test_tube.hyper_opt_utils import strategies
label_desc: Use image node_id 5 for calling a global function with example usage: test_random_search_unbounded_error() without return types