code: def test_save_json(self, tmpdir, training_configs):
      tmpdir.mkdir("dummy_folder")
      dir_path = os.path.join(tmpdir, "dummy_folder")
  
      training_configs.save_json(dir_path, "dummy_json")
  
      assert "dummy_json.json" in os.listdir(dir_path)
  
      rec_training_config = BaseTrainerConfig.from_json_file(
          os.path.join(dir_path, "dummy_json.json")
      )
  
      assert rec_training_config.__dict__ == training_configs.__dict__
  
imports: import json
  import os
  import pytest
  from pydantic import ValidationError
  from pythae.config import BaseConfig
  from pythae.models import AEConfig, BaseAEConfig
  from pythae.samplers import BaseSamplerConfig, NormalSamplerConfig
  from pythae.trainers import AdversarialTrainerConfig, BaseTrainerConfig
label_desc: Use image node_id 4 for calling the Test_Save_Model_JSON_from_Config obj's underlying member method code with example usage: obj.test_save_json(tmpdir, training_configs) without return types