code: def test_raises_no_input_dim(
      self, model_configs_no_input_dim, custom_encoder, custom_decoder
  ):
      with pytest.raises(AttributeError):
          model = RAE_GP(model_configs_no_input_dim)
  
      with pytest.raises(AttributeError):
          model = RAE_GP(
              model_configs_no_input_dim, encoder=custom_encoder
          )
  
      with pytest.raises(AttributeError):
          model = RAE_GP(
              model_configs_no_input_dim, decoder=custom_decoder
          )
  
      model = RAE_GP(
          model_configs_no_input_dim,
          encoder=custom_encoder,
          decoder=custom_decoder,
      )
  
imports: import os
  from copy import deepcopy
  import pytest
  import torch
  from pythae.customexception import BadInheritanceError
  from pythae.models import RAE_GP, AutoModel, RAE_GP_Config
  from pythae.models.base.base_utils import ModelOutput
  from pythae.pipelines import GenerationPipeline, TrainingPipeline
  from pythae.samplers import GaussianMixtureSamplerConfig, IAFSamplerConfig, MAFSamplerConfig, NormalSamplerConfig
  from pythae.trainers import BaseTrainer, BaseTrainerConfig
  from tests.data.custom_architectures import Decoder_AE_Conv, Encoder_AE_Conv, NetBadInheritance
label_desc: Use image node_id 4 for calling the Test_Model_Building obj's underlying member method code with example usage: obj.test_raises_no_input_dim(model_configs_no_input_dim, custom_encoder, custom_decoder) without return types