code: def check_monotonic(series_or_index, decreasing=False, strict=False):
      """
      Check if values in the object are monotonic increasing
      or decreasing.
  
      Parameters
      ----------
      decreasing : bool
          If True, check if values are monotonic decreasing,
          otherwise check if values are monotonic increasing
      strict : bool
          If True, values need to be unique to get a positive
          result
  
      Returns
      -------
      Scalar
      """
      op = DataFrameCheckMonotonic(decreasing=decreasing, strict=strict)
      return op(series_or_index)
  
imports: import numpy
  import pandas
  from ...None import opcodes
  from ...core import OutputType
  from ...core.operand import OperandStage
  from ...serialization.serializables import BoolField
  from ...tensor.core import TensorOrder
  from ...tensor.merge import TensorConcatenate
  from ..operands import DataFrameOperand, DataFrameOperandMixin
label_desc: Use image node_id 1 for calling a global function with example usage: check_monotonic(series_or_index, decreasing, strict) and returns: op