code: def _SB_BinaryStats_mean_longstretch1(X):
      # Longest period of successive incremental decreases.
      diff_binary = np.zeros(len(X) - 1)
      for i in range(len(diff_binary)):
          if X[i + 1] - X[i] >= 0:
              diff_binary[i] = 1
  
      return _long_stretch(diff_binary, 0)
  
imports: import math
  import numpy
  from sktime.utils.numba.njit import njit
label_desc: Use image node_id 29 for calling a global function with example usage: _SB_BinaryStats_mean_longstretch1(X) and returns: _long_stretch