code: def test_to_pandas_multiindex_names():
      ca = ColumnAccessor(
          {("a", "b"): [1, 2, 3], ("c", "d"): [3, 4, 5]},
          multiindex=True,
          level_names=("foo", "bar"),
      )
      assert_eq(
          ca.to_pandas_index(),
          pd.MultiIndex.from_tuples(
              (("a", "b"), ("c", "d")), names=("foo", "bar")
          ),
      )
  
imports: import pandas
  import pytest
  import cudf
  from cudf.core.column_accessor import ColumnAccessor
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 7 for calling a global function with example usage: test_to_pandas_multiindex_names() without return types