code: def test_shift_execution(setup):
      fill_value_default = no_default
      if not _enable_no_default or _with_column_freq_bug:
          fill_value_default = None
  
      # test dataframe
      rs = np.random.RandomState(0)
      raw = pd.DataFrame(
          rs.randint(1000, size=(10, 8)),
          columns=["col" + str(i + 1) for i in range(8)],
      )
  
      df = from_pandas_df(raw, chunk_size=5)
  
      for periods in (2, -2, 6, -6):
          for axis in (0, 1):
              for fill_value in (fill_value_default, 0, 1.0):
                  r = df.shift(
                      periods=periods, axis=axis, fill_value=fill_value
                  )
  
                  try:
                      result = r.execute().fetch()
                      expected = raw.shift(
                          periods=periods,
                          axis=axis,
                          fill_value=fill_value,
                      )
                      pd.testing.assert_frame_equal(
                          result, expected, check_dtype=False
                      )
                  except AssertionError as e:  # pragma: no cover
                      raise AssertionError(
                          f"Failed when periods: {periods}, axis: {axis}, fill_value: {fill_value}"
                      ) from e
  
      raw2 = raw.copy()
      raw2.index = pd.date_range("2020-1-1", periods=10)
      raw2.columns = pd.date_range("2020-3-1", periods=8)
  
      df2 = from_pandas_df(raw2, chunk_size=5)
  
      # test freq not None
      for periods in (2, -2):
          for axis in (0, 1):
              for fill_value in (fill_value_default, 0, 1.0):
                  r = df2.shift(
                      periods=periods,
                      freq="D",
                      axis=axis,
                      fill_value=fill_value,
                  )
  
                  try:
                      result = r.execute().fetch()
                      expected = raw2.shift(
                          periods=periods,
                          freq="D",
                          axis=axis,
                          fill_value=fill_value,
                      )
                      pd.testing.assert_frame_equal(result, expected)
                  except AssertionError as e:  # pragma: no cover
                      raise AssertionError(
                          f"Failed when periods: {periods}, axis: {axis}, fill_value: {fill_value}"
                      ) from e
  
      # test tshift
      r = df2.tshift(periods=1)
      result = r.execute().fetch()
      expected = raw2.tshift(periods=1)
      pd.testing.assert_frame_equal(result, expected)
  
      with pytest.raises(ValueError):
          _ = df.tshift(periods=1)
  
      # test series
      s = raw.iloc[:, 0]
  
      series = from_pandas_series(s, chunk_size=5)
      for periods in (0, 2, -2, 6, -6):
          for fill_value in (fill_value_default, 0, 1.0):
              r = series.shift(periods=periods, fill_value=fill_value)
  
              try:
                  result = r.execute().fetch()
                  expected = s.shift(
                      periods=periods, fill_value=fill_value
                  )
                  pd.testing.assert_series_equal(result, expected)
              except AssertionError as e:  # pragma: no cover
                  raise AssertionError(
                      f"Failed when periods: {periods}, fill_value: {fill_value}"
                  ) from e
  
      s2 = raw2.iloc[:, 0]
  
      # test freq not None
      series2 = from_pandas_series(s2, chunk_size=5)
      for periods in (2, -2):
          for fill_value in (fill_value_default, 0, 1.0):
              r = series2.shift(
                  periods=periods, freq="D", fill_value=fill_value
              )
  
              try:
                  result = r.execute().fetch()
                  expected = s2.shift(
                      periods=periods, freq="D", fill_value=fill_value
                  )
                  pd.testing.assert_series_equal(result, expected)
              except AssertionError as e:  # pragma: no cover
                  raise AssertionError(
                      f"Failed when periods: {periods}, fill_value: {fill_value}"
                  ) from e
  
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 22 for calling a global function with example usage: test_shift_execution(setup) without return types