code: def test_save_config(self, tmpdir, sampler):
      tmpdir.mkdir("dummy_folder")
      dir_path = os.path.join(tmpdir, "dummy_folder")
  
      sampler.save(dir_path)
  
      sampler_config_file = os.path.join(
          dir_path, "sampler_config.json"
      )
  
      assert os.path.isfile(sampler_config_file)
  
      generation_config_rec = VAMPSamplerConfig.from_json_file(
          sampler_config_file
      )
  
      assert (
          generation_config_rec.__dict__
          == sampler.sampler_config.__dict__
      )
  
file_path: benchmark_VAE/tests/test_vamp_sampler.py
imports: import os
  import numpy
  import pytest
  import torch
  from pythae.models import VAMP, VAMPConfig
  from pythae.pipelines import GenerationPipeline
  from pythae.samplers import NormalSampler, NormalSamplerConfig, VAMPSampler, VAMPSamplerConfig
label_desc: Use image node_id 1 for calling the Test_VAMPSampler_saving obj's underlying member method code with example usage: obj.test_save_config(tmpdir, sampler) without return types