code: def test_validation_sparse_only_two_args():
      with pytest.raises(ValueError, match="only two input sequences"):
          crosstab([0, 1, 1], [8, 8, 9], [1, 3, 3], sparse=True)
  
file_path: scipy/scipy/stats/tests/test_crosstab.py
imports: import pytest
  import numpy
  from numpy.testing import assert_array_equal, assert_equal
  from scipy.stats.contingency import crosstab
label_desc: Use image node_id 8 for calling a global function with example usage: test_validation_sparse_only_two_args() without return types