code: def test_dataframe_quantile():
      raw = pd.DataFrame(
          {
              "a": np.random.rand(10),
              "b": np.random.randint(1000, size=10),
              "c": [np.random.bytes(5) for _ in range(10)],
          }
      )
      s = df_from_pandas(raw, chunk_size=7)
  
      # q = 0.3, axis = 0
      r = s.quantile(0.3)
      e = raw.quantile(0.3)
      assert isinstance(r, Series)
      assert r.shape == (2,)
      assert r.dtype == e.dtype
      pd.testing.assert_index_equal(r.index_value.to_pandas(), e.index)
  
      tile(r)
  
      # q = 0.3, axis = 1
      r = s.quantile(0.3, axis=1)
      e = raw.quantile(0.3, axis=1)
      assert isinstance(r, Series)
      assert r.shape == e.shape
      assert r.dtype == e.dtype
      pd.testing.assert_index_equal(r.index_value.to_pandas(), e.index)
  
      tile(r)
  
      # q = [0.3, 0.7], axis = 0
      r = s.quantile([0.3, 0.7])
      e = raw.quantile([0.3, 0.7])
      assert isinstance(r, DataFrame)
      assert r.shape == e.shape
      pd.testing.assert_series_equal(r.dtypes, e.dtypes)
      pd.testing.assert_index_equal(r.index_value.to_pandas(), e.index)
      pd.testing.assert_index_equal(
          r.columns_value.to_pandas(), e.columns
      )
  
      tile(r)
  
      # q = [0.3, 0.7], axis = 1
      r = s.quantile([0.3, 0.7], axis=1)
      e = raw.quantile([0.3, 0.7], axis=1)
      assert isinstance(r, DataFrame)
      assert r.shape == e.shape
      pd.testing.assert_series_equal(r.dtypes, e.dtypes)
      pd.testing.assert_index_equal(r.index_value.to_pandas(), e.index)
      pd.testing.assert_index_equal(
          r.columns_value.to_pandas(), e.columns
      )
  
      tile(r)
  
file_path: mars/mars/dataframe/statistics/tests/test_statistics.py
imports: import numpy
  import pandas
  from ....core import tile
  from ....tensor import Tensor
  from ...core import Series, DataFrame
  from ...datasource.dataframe import from_pandas
  from ...datasource.series import from_pandas
label_desc: Use image node_id 2 for calling a global function with example usage: test_dataframe_quantile() without return types