code: def test_relative_risk_bad_type():
      with pytest.raises(TypeError, match="must be an integer"):
          relative_risk(1, 10, 2.0, 40)
  
file_path: scipy/scipy/stats/tests/test_relative_risk.py
imports: import pytest
  import numpy
  from numpy.testing import assert_allclose, assert_equal
  from scipy.stats.contingency import relative_risk
label_desc: Use image node_id 9 for calling a global function with example usage: test_relative_risk_bad_type() without return types