code: def test_save_pretrained(self):
      model = DummyModel()
      model(model.dummy_inputs)
  
      model.save_pretrained(self.cache_dir)
      files = os.listdir(self.cache_dir)
      self.assertTrue("saved_model.pb" in files)
      self.assertTrue("keras_metadata.pb" in files)
      self.assertTrue("README.md" in files)
      self.assertTrue("model.png" in files)
      self.assertEqual(len(files), 7)
  
      model.save_pretrained(
          self.cache_dir, config={"num": 12, "act": "gelu"}
      )
      files = os.listdir(self.cache_dir)
      self.assertTrue("config.json" in files)
      self.assertTrue("saved_model.pb" in files)
      self.assertEqual(len(files), 8)
  
imports: import json
  import os
  import unittest
  from pathlib import Path
  import pytest
  from huggingface_hub import HfApi, hf_hub_download, snapshot_download
  from huggingface_hub.keras_mixin import KerasModelHubMixin, from_pretrained_keras, push_to_hub_keras, save_pretrained_keras
  from huggingface_hub.utils import is_graphviz_available, is_pydot_available, is_tf_available, logging
  from .testing_constants import ENDPOINT_STAGING, TOKEN, USER
  from .testing_utils import repo_name
label_desc: Use image node_id 1 for calling the HubMixingTestKeras obj's underlying member method code with example usage: obj.test_save_pretrained() without return types