code: def test_wrong_optimizer_params(self):
      with pytest.raises(TypeError):
          BaseTrainerConfig(
              optimizer_cls="Adam", optimizer_params={"wrong_config": 1}
          )
  
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 2 for calling the Test_Build_Optimizer obj's underlying member method code with example usage: obj.test_wrong_optimizer_params() without return types