code: def test_hyperparameter_existence_and_defaults():
      hp = hp_module.HyperParameters()
      hypermodel = resnet.HyperResNet(
          input_shape=(256, 256, 3), classes=10
      )
      hypermodel.build(hp)
      assert hp.get("version") == "v2"
      assert hp.get("conv3_depth") == 4
      assert hp.get("conv4_depth") == 6
      assert hp.get("learning_rate") == 0.01
      assert hp.get("pooling") == "avg"
  
file_path: keras-tuner/keras_tuner/applications/resnet_test.py
imports: import os
  import numpy
  import pytest
  from keras_tuner.applications import resnet
  from keras_tuner.backend import config
  from keras_tuner.backend import keras
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 2 for calling a global function with example usage: test_hyperparameter_existence_and_defaults() without return types