code: def training_configs(self, request, tmpdir):
      if request.param is not None:
          tmpdir.mkdir("dummy_folder")
          dir_path = os.path.join(tmpdir, "dummy_folder")
          request.param.output_dir = dir_path
          return request.param
      else:
          return None
  
imports: import os
  from copy import deepcopy
  import pytest
  import torch
  from pythae.customexception import ModelError
  from pythae.models import AE, RHVAE, VAE, AEConfig, RHVAEConfig, VAEConfig
  from pythae.trainers import BaseTrainer, BaseTrainerConfig
  from tests.data.custom_architectures import *
label_desc: Use image node_id 1 for calling the Test_Set_Training_config obj's underlying member method code with example usage: obj.training_configs(request, tmpdir) and returns: request, None