code: def test_check_monotonic_execution(setup):
      idx_value = pd.Index(list(range(1000)))
  
      idx_increase = from_pandas_index(idx_value, chunk_size=100)
      assert (
          idx_increase.is_monotonic_increasing.execute().fetch() is True
      )
      assert (
          idx_increase.is_monotonic_decreasing.execute().fetch()
          is False
      )
  
      idx_decrease = from_pandas_index(idx_value[::-1], chunk_size=100)
      assert (
          idx_decrease.is_monotonic_increasing.execute().fetch()
          is False
      )
      assert (
          idx_decrease.is_monotonic_decreasing.execute().fetch() is True
      )
  
      idx_mixed = from_pandas_index(
          pd.Index(list(range(500)) + list(range(500))), chunk_size=100
      )
      assert (
          idx_mixed.is_monotonic_increasing.execute().fetch() is False
      )
      assert (
          idx_mixed.is_monotonic_decreasing.execute().fetch() is False
      )
  
      ser_mixed = from_pandas_series(
          pd.Series(list(range(500)) + list(range(499, 999))),
          chunk_size=100,
      )
      assert ser_mixed.is_monotonic_increasing.execute().fetch() is True
      assert (
          ser_mixed.is_monotonic_decreasing.execute().fetch() is False
      )
  
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 43 for calling a global function with example usage: test_check_monotonic_execution(setup) without return types