code: def test_save_sampling_and_sampler_config(
      self, tmpdir, model, sampler, num_sample_and_batch_size
  ):
      dir_path = os.path.join(tmpdir, "dummy_folder")
      num_samples, batch_size = (
          num_sample_and_batch_size[0],
          num_sample_and_batch_size[1],
      )
  
      gen_samples = sampler.sample(
          num_samples=num_samples,
          batch_size=batch_size,
          output_dir=dir_path,
          return_gen=True,
          save_sampler_config=True,
      )
  
      assert gen_samples.shape[0] == num_samples
      assert len(os.listdir(dir_path)) == num_samples + 1
      assert "sampler_config.json" in os.listdir(dir_path)
  
file_path: benchmark_VAE/tests/test_hypersphere_uniform_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 HypersphereUniformSampler, HypersphereUniformSamplerConfig, NormalSampler, NormalSamplerConfig
label_desc: Use image node_id 3 for calling the Test_HypersphereUniformSampler_Sampling obj's underlying member method code with example usage: obj.test_save_sampling_and_sampler_config(tmpdir, model, sampler, num_sample_and_batch_size) without return types