class_docstr: Tests KerasLayer in an all-Keras environment.
class_docstr_tok: ["Tests","KerasLayer","in","an","all-Keras","environment","."]
code: def testComputeOutputShape(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
      )
      layer = hub.KerasLayer(export_dir)
      self.assertEqual(
          [10, 1], layer.compute_output_shape(tuple([10, 1])).as_list()
      )
      layer.get_config()
  
imports: import json
  import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_hub
label_desc: Use image node_id 8 for calling the KerasTest obj's underlying member method code with example usage: obj.testComputeOutputShape(save_from_keras) without return types