code: def test_chi2_contingency_yates_gh13875():
      # Magnitude of Yates' continuity correction should not exceed difference
      # between expected and observed value of the statistic; see gh-13875
      observed = np.array([[1573, 3], [4, 0]])
      p = chi2_contingency(observed)[1]
      assert_allclose(p, 1, rtol=1e-12)
  
file_path: scipy/scipy/stats/tests/test_contingency.py
imports: import numpy
  from numpy.testing import assert_equal, assert_array_equal, assert_array_almost_equal, assert_approx_equal, assert_allclose
  import pytest
  from pytest import raises
  from scipy.special import xlogy
  from scipy.stats.contingency import margins, expected_freq, chi2_contingency, association
label_desc: Use image node_id 7 for calling a global function with example usage: test_chi2_contingency_yates_gh13875() without return types