code: def test_misc_quantiles(data, q):
      pdf_series = _create_pandas_series_float64_default(data)
      gdf_series = _create_cudf_series_float64_default(data)
  
      expected = pdf_series.quantile(
          q.get() if isinstance(q, cp.ndarray) else q
      )
      actual = gdf_series.quantile(q)
      assert_eq(expected, actual)
  
imports: from concurrent.futures import ThreadPoolExecutor
  import cupy
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.datasets import randomdata
  from cudf.testing._utils import _create_cudf_series_float64_default, _create_pandas_series_float64_default, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 11 for calling a global function with example usage: test_misc_quantiles(data, q) without return types