code: def test_hyperparameter_selection_and_hp_defaults_fixed_aug():
      hp = hp_module.HyperParameters()
      hm = aug_module.HyperImageAugment(
          input_shape=(32, 32, 3),
          translate_x=[0.2, 0.4],
          contrast=None,
          augment_layers=0,
      )
      hm.build(hp)
      # default value of default search space are always minimum.
      assert hp.get("factor_rotate") == 0
      assert hp.get("factor_translate_x") == 0.2
      assert hp.get("factor_translate_y") == 0
      assert "factor_contrast" not in hp.values
  
file_path: keras-tuner/keras_tuner/applications/augment_test.py
imports: import numpy
  import pytest
  from keras_tuner.applications import augment
  from keras_tuner.backend import config
  from keras_tuner.backend import keras
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 6 for calling a global function with example usage: test_hyperparameter_selection_and_hp_defaults_fixed_aug() without return types