code: def test_factor_less_than_2_error():
      with pytest.raises(ValueError, match="factor needs"):
          hyperband_module.HyperbandOracle(
              objective=keras_tuner.Objective("score", "max"),
              hyperband_iterations=1,
              max_epochs=8,
              factor=1,
          )
  
file_path: keras-tuner/keras_tuner/tuners/hyperband_test.py
imports: import numpy
  import pytest
  import keras_tuner
  from keras_tuner import backend
  from keras_tuner import utils
  from keras_tuner.backend import keras
  from keras_tuner.engine import tuner_utils
  from keras_tuner.tuners import hyperband
label_desc: Use image node_id 8 for calling a global function with example usage: test_factor_less_than_2_error() without return types