code: def test_single_q():
      q = 0.5
  
      pdf = pd.DataFrame({"a": [4, 24, 13, 8, 7]})
      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 1 for calling a global function with example usage: test_single_q() without return types