code: def test_init_checks_output_dims_consistency(self):
      with pytest.raises(ConfigurationError):
          Maxout(
              input_dim=2,
              num_layers=2,
              output_dims=[5, 4, 3],
              pool_sizes=4,
              dropout=0.0,
          )
  
file_path: allennlp/tests/modules/maxout_test.py
imports: from numpy.testing import assert_almost_equal
  import pytest
  import torch
  from allennlp.common import Params
  from allennlp.common.checks import ConfigurationError
  from allennlp.modules import Maxout
  from allennlp.nn import InitializerApplicator, Initializer
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 1 for calling the TestMaxout obj's underlying member method code with example usage: obj.test_init_checks_output_dims_consistency() without return types