code: def test_to_pandas_indices():
      data = test_data_values[0]
  
      md_df = pd.DataFrame(data)
      index = pandas.MultiIndex.from_tuples(
          [(i, i * 2) for i in np.arange(len(md_df) + 1)],
          names=["A", "B"],
      ).drop(0)
      columns = pandas.MultiIndex.from_tuples(
          [(i, i * 2) for i in np.arange(len(md_df.columns) + 1)],
          names=["A", "B"],
      ).drop(0)
  
      md_df.index = index
      md_df.columns = columns
  
      pd_df = md_df._to_pandas()
  
      for axis in [0, 1]:
          assert md_df.axes[axis].equals(
              pd_df.axes[axis]
          ), f"Indices at axis {axis} are different!"
          assert md_df.axes[axis].equal_levels(
              pd_df.axes[axis]
          ), f"Levels of indices at axis {axis} are different!"
  
file_path: ray/python/ray/tests/modin/test_modin.py
imports: import sys
  import pytest
  import pandas
  import numpy
  from numpy.testing import assert_array_equal
  from ray.tests.conftest import ray_start_regular_shared
label_desc: Use image node_id 12 for calling a global function with example usage: test_to_pandas_indices() without return types