code: def test_invalid_confidence_level(self, level):
      result = odds_ratio([[5, 10], [2, 32]])
      with pytest.raises(ValueError, match="must be between 0 and 1"):
          result.confidence_interval(confidence_level=level)
  
file_path: scipy/scipy/stats/tests/test_odds_ratio.py
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_allclose
  from .._discrete_distns import nchypergeom_fisher, hypergeom
  from scipy.stats._odds_ratio import odds_ratio
  from .data.fisher_exact_results_from_r import data
label_desc: Use image node_id 10 for calling the TestOddsRatio obj's underlying member method code with example usage: obj.test_invalid_confidence_level(level) without return types