code: def test_raises_sanity_check_error(
      self, rhvae, train_dataset, training_config
  ):
      with pytest.raises(ModelError):
          _ = BaseTrainer(
              model=rhvae,
              train_dataset=train_dataset,
              training_config=training_config,
          )
  
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 6 for calling the Test_Sanity_Checks obj's underlying member method code with example usage: obj.test_raises_sanity_check_error(rhvae, train_dataset, training_config) without return types