code: def test_crosstab_basic_3d():
      # Verify the function for three input sequences.
      a = "a"
      b = "b"
      x = [0, 0, 9, 9, 0, 0, 9, 9]
      y = [a, a, a, a, b, b, b, a]
      z = [1, 2, 3, 1, 2, 3, 3, 1]
      expected_xvals = [0, 9]
      expected_yvals = [a, b]
      expected_zvals = [1, 2, 3]
      expected_count = np.array(
          [[[1, 1, 0], [0, 1, 1]], [[2, 0, 1], [0, 0, 1]]]
      )
      (xvals, yvals, zvals), count = crosstab(x, y, z)
      assert_array_equal(xvals, expected_xvals)
      assert_array_equal(yvals, expected_yvals)
      assert_array_equal(zvals, expected_zvals)
      assert_array_equal(count, expected_count)
  
file_path: catboost/contrib/python/scipy/py3/scipy/stats/tests/test_crosstab.py
imports: import pytest
  import numpy
  from numpy.testing import assert_array_equal
  from scipy.stats.contingency import crosstab
label_desc: Use image node_id 3 for calling a global function with example usage: test_crosstab_basic_3d() without return types