code: def test_save_pretrained_with_config(self):
      with SoftTemporaryDirectory() as tmpdir:
          _save_pretrained_fastai(
              dummy_model, tmpdir, config=dummy_config
          )
          files = os.listdir(tmpdir)
  
      self.assertTrue("config.json" in files)
      self.assertEqual(len(files), 4)
  
file_path: huggingface_hub/tests/test_fastai_integration.py
imports: import os
  from unittest import TestCase, skip
  from huggingface_hub import HfApi
  from huggingface_hub.fastai_utils import _save_pretrained_fastai, from_pretrained_fastai, push_to_hub_fastai
  from huggingface_hub.utils import SoftTemporaryDirectory, is_fastai_available, is_fastcore_available, is_torch_available
  from .testing_constants import ENDPOINT_STAGING, TOKEN, USER
  from .testing_utils import repo_name
label_desc: Use image node_id 2 for calling the TestFastaiUtils obj's underlying member method code with example usage: obj.test_save_pretrained_with_config() without return types