code: def test_assoc(stat, expected):
      # 2d Array
      obs1 = np.array(
          [
              [12, 13, 14, 15, 16],
              [17, 16, 18, 19, 11],
              [9, 15, 14, 12, 11],
          ]
      )
      a = association(observed=obs1, method=stat)
      assert_allclose(a, expected)
  
file_path: catboost/contrib/python/scipy/py3/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 9 for calling a global function with example usage: test_assoc(stat, expected) without return types