code: def save_test_data(data, test_name):
      """Save the data file for a given set of tests."""
      filename = os.path.join(
          _PYCLS_DIR, "dev/model_{}.json".format(test_name)
      )
      with open(filename, "w") as file:
          data["date-created"] = str(datetime.datetime.now())
          json.dump(data, file, sort_keys=True, indent=4)
  
imports: import datetime
  import json
  import os
  import shutil
  import tempfile
  import unittest
  import pycls.core.builders
  import pycls.core.distributed
  import pycls.core.logging
  import pycls.core.net
  import pycls.core.trainer
  import pycls.models.model_zoo
  from parameterized import parameterized
  from pycls.core.config import cfg, load_cfg, reset_cfg
label_desc: Use image node_id 8 for calling a global function with example usage: save_test_data(data, test_name) without return types