code: def test_series_quantile_execution(setup):
      raw = pd.Series(np.random.rand(10), name="a")
      a = Series(raw, chunk_size=3)
  
      # q = 0.5, scalar
      r = a.quantile()
      result = r.execute().fetch()
      expected = raw.quantile()
  
      assert result == expected
  
      # q is a list
      r = a.quantile([0.3, 0.7])
      result = r.execute().fetch()
      expected = raw.quantile([0.3, 0.7])
  
      pd.testing.assert_series_equal(result, expected)
  
      # test interpolation
      r = a.quantile([0.3, 0.7], interpolation="midpoint")
      result = r.execute().fetch()
      expected = raw.quantile([0.3, 0.7], interpolation="midpoint")
  
      pd.testing.assert_series_equal(result, expected)
  
      q = tensor([0.3, 0.7])
  
      # q is a tensor
      r = a.quantile(q)
      result = r.execute().fetch()
      expected = raw.quantile([0.3, 0.7])
  
      pd.testing.assert_series_equal(result, expected)
  
file_path: mars/mars/dataframe/statistics/tests/test_statistics_execution.py
imports: import numpy
  import pandas
  import pytest
  from ....tensor import tensor
  from ...None import Series, DataFrame
label_desc: Use image node_id 1 for calling a global function with example usage: test_series_quantile_execution(setup) without return types