code: def test_with_multiindex():
      q = [0, 0.5, 1]
  
      pdf = pd.DataFrame(
          {
              "index_1": [3, 1, 9, 7, 5],
              "index_2": [2, 4, 3, 5, 1],
              "a": [8, 4, 2, 3, 8],
          }
      )
      pdf.set_index(["index_1", "index_2"], inplace=True)
  
      gdf = cudf.from_pandas(pdf)
  
      pdf_q = pdf.quantile(q, interpolation="nearest")
      gdf_q = gdf.quantile(q, interpolation="nearest", method="table")
  
      assert_eq(pdf_q, gdf_q, check_index_type=False)
  
file_path: cudf/python/cudf/cudf/tests/test_quantiles.py
imports: import re
  import pandas
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_with_multiindex() without return types