class_docstr: Unit tests for KerasLayer.
class_docstr_tok: ["Unit","tests","for","KerasLayer","."]
code: def test_keras_layer_get_config(self, signature, output_key, as_dict):
      model_format = "TF2SavedModel_SavedRaw"
      export_dir = os.path.join(
          self.get_temp_dir(), "plus_one_" + model_format
      )
      _dispatch_model_format(
          model_format, _save_plus_one_saved_model_v2, export_dir
      )
      inputs = 10.0  # Test modules perform increment op.
      layer = hub.KerasLayer(
          export_dir,
          signature=signature,
          output_key=output_key,
          signature_outputs_as_dict=as_dict,
      )
      outputs = layer(inputs)
      config = layer.get_config()
      new_layer = hub.KerasLayer.from_config(_json_cycle(config))
      new_outputs = new_layer(inputs)
      self.assertEqual(outputs, new_outputs)
  
imports: import json
  import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_hub
label_desc: Use image node_id 4 for calling the KerasLayerTest obj's underlying member method code with example usage: obj.test_keras_layer_get_config(signature, output_key, as_dict) without return types