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 = (
          GaussianMixtureSamplerConfig.from_json_file(
              sampler_config_file
          )
      )
  
      assert (
          generation_config_rec.__dict__
          == sampler.sampler_config.__dict__
      )
  
file_path: benchmark_VAE/tests/test_gaussian_mixture_sampler.py
imports: import os
  import numpy
  import pytest
  import torch
  from pythae.models import AE, VAE, AEConfig, VAEConfig
  from pythae.pipelines import GenerationPipeline
  from pythae.samplers import GaussianMixtureSampler, GaussianMixtureSamplerConfig, NormalSampler, NormalSamplerConfig
  from pythae.data.preprocessors import DataProcessor
label_desc: Use image node_id 1 for calling the Test_GaussianMixtureSampler_saving obj's underlying member method code with example usage: obj.test_save_config(tmpdir, sampler) without return types