code: def test_q_cut_execution(setup):
      rs = np.random.RandomState(0)
      raw = rs.random(15) * 1000
      s = pd.Series(raw, index=[f"i{i}" for i in range(15)])
  
      series = from_pandas_series(s)
      r = qcut(series, 3)
      result = r.execute().fetch()
      expected = pd.qcut(s, 3)
      pd.testing.assert_series_equal(result, expected)
  
      r = qcut(s, 3)
      result = r.execute().fetch()
      expected = pd.qcut(s, 3)
      pd.testing.assert_series_equal(result, expected)
  
      series = from_pandas_series(s)
      r = qcut(series, [0.3, 0.5, 0.7])
      result = r.execute().fetch()
      expected = pd.qcut(s, [0.3, 0.5, 0.7])
      pd.testing.assert_series_equal(result, expected)
  
      r = qcut(range(5), 3)
      result = r.execute().fetch()
      expected = pd.qcut(range(5), 3)
      assert isinstance(result, type(expected))
      pd.testing.assert_series_equal(
          pd.Series(result), pd.Series(expected)
      )
  
      r = qcut(range(5), [0.2, 0.5])
      result = r.execute().fetch()
      expected = pd.qcut(range(5), [0.2, 0.5])
      assert isinstance(result, type(expected))
      pd.testing.assert_series_equal(
          pd.Series(result), pd.Series(expected)
      )
  
      r = qcut(range(5), tensor([0.2, 0.5]))
      result = r.execute().fetch()
      expected = pd.qcut(range(5), [0.2, 0.5])
      assert isinstance(result, type(expected))
      pd.testing.assert_series_equal(
          pd.Series(result), pd.Series(expected)
      )
  
imports: import random
  from collections import OrderedDict
  import numpy
  import pandas
  import pytest
  import mars
  from ....config import options, option_context
  from ....dataframe import DataFrame, Series
  from ....tensor import arange, tensor
  from ....tensor.random import rand
  from ....tests.core import require_cudf
  from ....utils import lazy_import, pd_release_version, no_default
  from ...None import eval, cut, qcut, get_dummies
  from ...core import DATAFRAME_OR_SERIES_TYPE
  from ...datasource.dataframe import from_pandas
  from ...datasource.series import from_pandas
  from ...datasource.index import from_pandas
  from ..None import to_gpu, to_cpu
  from ..bloom_filter import filter_by_bloom_filter
  from ..shift import _enable_no_default, _with_column_freq_bug
  from ..to_numeric import to_numeric
  from ..rebalance import DataFrameRebalance
label_desc: Use image node_id 21 for calling a global function with example usage: test_q_cut_execution(setup) without return types