code: def _long_stretch(X_binary, val):
      last_val = 0
      max_stretch = 0
      for i in range(len(X_binary)):
          if X_binary[i] != val or i == len(X_binary) - 1:
              stretch = i - last_val
              if stretch > max_stretch:
                  max_stretch = stretch
              last_val = i
  
      return max_stretch
  
imports: import math
  import numpy
  from sktime.utils.numba.njit import njit
label_desc: Use image node_id 2 for calling a global function with example usage: _long_stretch(X_binary, val) and returns: max_stretch