code: def test_hyperparameter_override():
      hp = hp_module.HyperParameters()
      hp.Choice("pooling", ["flatten"])
      hp.Choice("num_dense_layers", [2])
      hypermodel = xception.HyperXception(
          input_shape=(256, 256, 3), classes=10
      )
      hypermodel.build(hp)
      assert hp.get("pooling") == "flatten"
      assert hp.get("num_dense_layers") == 2
  
file_path: keras-tuner/keras_tuner/applications/xception_test.py
imports: import numpy
  import pytest
  from keras_tuner.applications import xception
  from keras_tuner.backend import config
  from keras_tuner.backend import keras
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 4 for calling a global function with example usage: test_hyperparameter_override() without return types