code: def test_crosstab_basic_1d():
      # Verify that a single input sequence works as expected.
      x = [1, 2, 3, 1, 2, 3, 3]
      expected_xvals = [1, 2, 3]
      expected_count = np.array([2, 2, 3])
      (xvals,), count = crosstab(x)
      assert_array_equal(xvals, expected_xvals)
      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 2 for calling a global function with example usage: test_crosstab_basic_1d() without return types