class_docstr: Tests KerasLayer in an all-Keras environment.
class_docstr_tok: ["Tests","KerasLayer","in","an","all-Keras","environment","."]
code: def testSaveModelConfig(self, save_from_keras):
      export_dir = os.path.join(self.get_temp_dir(), "half-plus-one")
      _save_half_plus_one_model(
          export_dir, save_from_keras=save_from_keras
      )
  
      model = tf_keras_v2.Sequential([hub.KerasLayer(export_dir)])
      in_value = np.array([[10.0]], dtype=np.float32)
      result = model(in_value).numpy()
  
      json_string = model.to_json()
      new_model = tf_keras_v2.models.model_from_json(
          json_string, custom_objects={"KerasLayer": hub.KerasLayer}
      )
      new_result = new_model(in_value).numpy()
      self.assertEqual(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 13 for calling the KerasTest obj's underlying member method code with example usage: obj.testSaveModelConfig(save_from_keras) without return types