code: def test_transforms_search_space():
      hm = aug_module.HyperImageAugment(input_shape=(32, 32, 3))
      # Default choice
      assert hm.transforms == [
          ("rotate", (0, 0.5)),
          ("translate_x", (0, 0.4)),
          ("translate_y", (0, 0.4)),
          ("contrast", (0, 0.3)),
      ]
  
      hm = aug_module.HyperImageAugment(
          input_shape=(32, 32, 3),
          rotate=0.3,
          translate_x=[0.1, 0.5],
          contrast=None,
      )
      assert hm.transforms == [
          ("rotate", (0, 0.3)),
          ("translate_x", (0.1, 0.5)),
          ("translate_y", (0, 0.4)),
      ]
  
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 1 for calling a global function with example usage: test_transforms_search_space() without return types