class_docstr: Unit tests for KerasLayer.
class_docstr_tok: ["Unit","tests","for","KerasLayer","."]
code: def test_keras_layer_fails_if_saved_model_v2_with_tags(self):
      export_dir = os.path.join(
          self.get_temp_dir(), "saved_model_v2_mini"
      )
      _save_plus_one_saved_model_v2(export_dir, save_from_keras=False)
      with self.assertRaises(ValueError):
          hub.KerasLayer(export_dir, signature=None, tags=["train"])
  
imports: import json
  import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_hub
label_desc: Use image node_id 7 for calling the KerasLayerTest obj's underlying member method code with example usage: obj.test_keras_layer_fails_if_saved_model_v2_with_tags() without return types