code: def test_crosstab_both_tuple_names(self):
      # GH 18321
      s1 = Series(range(3), name=("a", "b"))
      s2 = Series(range(3), name=("c", "d"))
  
      expected = DataFrame(
          np.eye(3, dtype="int64"),
          index=Index(range(3), name=("a", "b")),
          columns=Index(range(3), name=("c", "d")),
      )
      result = crosstab(s1, s2)
      tm.assert_frame_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import CategoricalDtype, CategoricalIndex, DataFrame, Index, MultiIndex, Series, crosstab
  import pandas._testing
label_desc: Use image node_id 24 for calling the TestCrosstab obj's underlying member method code with example usage: obj.test_crosstab_both_tuple_names() without return types