code: def _SB_BinaryStats_diff_longstretch0(X, smean):
      # Longest period of consecutive values above the mean.
      mean_binary = np.zeros(len(X))
      for i in range(len(X)):
          if X[i] - smean > 0:
              mean_binary[i] = 1
  
      return _long_stretch(mean_binary, 1)
  
imports: import math
  import numpy
  from sktime.utils.numba.njit import njit
label_desc: Use image node_id 17 for calling a global function with example usage: _SB_BinaryStats_diff_longstretch0(X, smean) and returns: _long_stretch