code: def test_init_checks_activation_consistency(self):
      with pytest.raises(ConfigurationError):
          FeedForward(
              2,
              4,
              5,
              [
                  Activation.by_name("relu")(),
                  Activation.by_name("relu")(),
              ],
          )
  
file_path: allennlp/tests/modules/feedforward_test.py
imports: from numpy.testing import assert_almost_equal
  import inspect
  import pytest
  import torch
  from allennlp.common import Params
  from allennlp.common.checks import ConfigurationError
  from allennlp.modules import FeedForward
  from allennlp.nn import InitializerApplicator, Initializer, Activation
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 3 for calling the TestFeedForward obj's underlying member method code with example usage: obj.test_init_checks_activation_consistency() without return types