code: def test_write_config():
      models = {
          "model_a": "path/to/model_a",
          "model_b": "path/to/model_b",
      }
      with tempfile.TemporaryDirectory() as tmp_dir:
          write_config(
              os.path.join(tmp_dir, "config.config"),
              models,
              verbose=True,
          )
  
          ref = testing.ReferenceText(
              os.path.join(TEST_DIR, "testdata")
          )
          with open(os.path.join(tmp_dir, "config.config")) as f:
              ref.assert_equal("write_config.config", f.read())
  
file_path: modelkit/tests/test_tf_serving_deploy.py
imports: import os
  import shutil
  import tempfile
  import pytest
  from modelkit import testing
  from modelkit.core.library import ModelLibrary
  from modelkit.core.model import Model
  from modelkit.core.models.tensorflow_model import TensorflowModel
  from modelkit.utils.tensorflow import deploy_tf_models, write_config
  from tests import TEST_DIR
  from tests.conftest import skip_unless
label_desc: Use image node_id 1 for calling a global function with example usage: test_write_config() without return types