docstr: Test deprecated save_format argument.
docstr_tok: ["Test","deprecated","save_format","argument","."]
code: def test_invalid_save_format(self):
      """Test deprecated save_format argument."""
      model = self.get_model()
      with self.assertRaisesRegex(
          ValueError, "The `save_format` argument is deprecated"
      ):
          saving_api.save_model(model, "model.txt", save_format=True)
  
imports: import os
  import unittest.mock
  import numpy
  from absl import logging
  from keras import layers
  from keras.models import Sequential
  from keras.saving import saving_api
  from keras.testing import test_case
label_desc: Use image node_id 3 for calling the SaveModelTests obj's underlying member method code with example usage: obj.test_invalid_save_format() without return types