code: def test_tag_length_mismatch_raises(self):
      with pytest.raises(ConfigurationError):
          wrong_tags = ["B", "O", "O"]
          _ = SequenceLabelField(wrong_tags, self.text)
  
imports: from __future__ import with_statement
  from __future__ import absolute_import
  from __future__ import print_function
  from collections import defaultdict
  import pytest
  import numpy
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token, Vocabulary
  from allennlp.data.fields import TextField, SequenceLabelField
  from allennlp.data.token_indexers import SingleIdTokenIndexer
label_desc: Use image node_id 2 for calling the TestSequenceLabelField obj's underlying member method code with example usage: obj.test_tag_length_mismatch_raises() without return types