class_docstr: Tests KerasLayer in an all-Keras environment.
class_docstr_tok: ["Tests","KerasLayer","in","an","all-Keras","environment","."]
code: def testGetConfigFromConfigWithHParams(self):
      if tf.__version__ == "2.0.0-alpha0":
          self.skipTest("b/127938157 broke use of default hparams")
      export_dir = os.path.join(self.get_temp_dir(), "with-hparams")
      _save_model_with_hparams(
          export_dir
      )  # Has no `save_from_keras` arg.
      layer = hub.KerasLayer(
          export_dir, arguments=dict(a=10.0)
      )  # Leave b=0.
      in_value = np.array([[1.0], [2.0], [3.0]], dtype=np.float32)
      expected_result = np.array(
          [[10.0], [20.0], [30.0]], dtype=np.float32
      )
      result = layer(in_value).numpy()
      self.assertAllEqual(expected_result, result)
  
      config = layer.get_config()
      new_layer = hub.KerasLayer.from_config(_json_cycle(config))
      new_result = new_layer(in_value).numpy()
      self.assertAllEqual(result, new_result)
  
imports: import json
  import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_hub
label_desc: Use image node_id 12 for calling the KerasTest obj's underlying member method code with example usage: obj.testGetConfigFromConfigWithHParams() without return types