code: def test_from_params_requires_batch_first(self):
      params = Params(
          {
              "type": "lstm",
              "batch_first": False,
          }
      )
      with pytest.raises(ConfigurationError):
          # pylint: disable=unused-variable
          encoder = Seq2VecEncoder.from_params(params)
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/modules/seq2vec_encoder_test.py
imports: from __future__ import with_statement
  from __future__ import absolute_import
  import pytest
  from allennlp.common import Params
  from allennlp.common.checks import ConfigurationError
  from allennlp.modules import Seq2VecEncoder
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 2 for calling the TestSeq2VecEncoder obj's underlying member method code with example usage: obj.test_from_params_requires_batch_first() without return types