code: def test_ignore_oov_should_fail_on_non_padded_vocab(self):
      with pytest.raises(ConfigurationError):
          BagOfWordCountsTokenEmbedder(
              self.non_padded_vocab, ignore_oov=True
          )
  
file_path: allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
imports: import numpy
  import pytest
  import torch
  from numpy.testing import assert_almost_equal
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Vocabulary
  from allennlp.modules.token_embedders import BagOfWordCountsTokenEmbedder
label_desc: Use image node_id 4 for calling the TestBagOfWordCountsTokenEmbedder obj's underlying member method code with example usage: obj.test_ignore_oov_should_fail_on_non_padded_vocab() without return types