code: def test_raises_on_odd_input_dimension(self):
      with pytest.raises(ConfigurationError):
          _ = BidirectionalEndpointSpanExtractor(7)
  
file_path: allennlp/tests/modules/span_extractors/bidirectional_endpoint_span_extractor_test.py
imports: import numpy
  import pytest
  import torch
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.params import Params
  from allennlp.modules.span_extractors import BidirectionalEndpointSpanExtractor, SpanExtractor
  from allennlp.nn.util import batched_index_select
label_desc: Use image node_id 2 for calling the TestBidirectonalEndpointSpanExtractor obj's underlying member method code with example usage: obj.test_raises_on_odd_input_dimension() without return types