code: def test_build_custom_arch(
      self, model_configs, custom_encoder, custom_decoder, custom_metric
  ):
      rhvae = RHVAE(
          model_configs, encoder=custom_encoder, decoder=custom_decoder
      )
  
      assert rhvae.encoder == custom_encoder
      assert not rhvae.model_config.uses_default_encoder
  
      assert rhvae.decoder == custom_decoder
      assert not rhvae.model_config.uses_default_encoder
  
      assert rhvae.model_config.uses_default_metric
  
      rhvae = RHVAE(model_configs, metric=custom_metric)
  
      assert rhvae.model_config.uses_default_encoder
      assert rhvae.model_config.uses_default_encoder
  
      assert rhvae.metric == custom_metric
      assert not rhvae.model_config.uses_default_metric
  
imports: import os
  from copy import deepcopy
  import pytest
  import torch
  from pythae.customexception import BadInheritanceError
  from pythae.models import RHVAE, AutoModel, RHVAEConfig
  from pythae.models.rhvae.rhvae_config import RHVAEConfig
  from pythae.pipelines import GenerationPipeline, TrainingPipeline
  from pythae.samplers import GaussianMixtureSamplerConfig, IAFSamplerConfig, MAFSamplerConfig, NormalSamplerConfig, TwoStageVAESamplerConfig
  from pythae.trainers import BaseTrainer, BaseTrainerConfig
  from tests.data.custom_architectures import Decoder_AE_Conv, Encoder_VAE_Conv, Metric_MLP_Custom, NetBadInheritance
label_desc: Use image node_id 5 for calling the Test_Model_Building obj's underlying member method code with example usage: obj.test_build_custom_arch(model_configs, custom_encoder, custom_decoder, custom_metric) without return types