code: def build_quantizer(self, model_configs):
      model = VQVAE(model_configs)
  
      if model.use_ema:
          assert isinstance(model.quantizer, QuantizerEMA)
  
      else:
          assert isinstance(model.quantizer, Quantizer)
  
imports: import os
  from copy import deepcopy
  import pytest
  import torch
  from pydantic import ValidationError
  from pythae.customexception import BadInheritanceError
  from pythae.models import VQVAE, AutoModel, VQVAEConfig
  from pythae.models.base.base_utils import ModelOutput
  from pythae.models.vq_vae.vq_vae_utils import Quantizer, QuantizerEMA
  from pythae.pipelines import GenerationPipeline, TrainingPipeline
  from pythae.samplers import PixelCNNSamplerConfig
  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 3 for calling the Test_Model_Building obj's underlying member method code with example usage: obj.build_quantizer(model_configs) without return types