code: def test_config(self):
      config = {"lstm_units": [128] * 2, "dropouts": [0.2] * 2}
      self.model.fit_eval(
          (self.train_data[0], self.train_data[1]),
          self.val_data,
          **config,
      )
  
      config = {"lstm_units": 128, "dropouts": 0.2}
      self.model.fit_eval(
          (self.train_data[0], self.train_data[1]),
          self.val_data,
          **config,
      )
  
      with pytest.raises(ValueError):
          config = {"lstm_units": 0.1, "dropouts": 0.2}
          self.model.fit_eval(
              (self.train_data[0], self.train_data[1]),
              self.val_data,
              **config,
          )
  
      with pytest.raises(ValueError):
          config = {"lstm_units": [128] * 2, "dropouts": [0.2] * 3}
          self.model.fit_eval(
              (self.train_data[0], self.train_data[1]),
              self.val_data,
              **config,
          )
  
      with pytest.raises(ValueError):
          config = {"lstm_units": 128, "dropouts": [0.2] * 2}
          self.model.fit_eval(
              (self.train_data[0], self.train_data[1]),
              self.val_data,
              **config,
          )
  
file_path: analytics-zoo/pyzoo/test/zoo/chronos/model/test_VanillaLSTM.py
imports: import pytest
  from unittest import TestCase
  from zoo.chronos.model.VanillaLSTM import VanillaLSTM
  import numpy
  import tempfile
  import os
label_desc: Use image node_id 2 for calling the TestVanillaLSTM obj's underlying member method code with example usage: obj.test_config() without return types