code: def _check_line_steps(line: np.ndarray) -> np.ndarray:
      """Check the next 'step' is along the line.
  
      Parameters
      ----------
      line: np.ndarray
          line to check steps.
  
      Returns
      -------
      np.ndarray
          Line with updated indexes.
      """
      prev = line[0]
      for i in range(1, len(line)):
          curr_val = line[i]
          if curr_val > (prev + 1):
              line[i] = prev + 1
          elif curr_val < (prev - 1):
              line[i] = prev - 1
          prev = curr_val
      return line
  
file_path: sktime/sktime/distances/_lower_bounding_numba.py
imports: import math
  from typing import Union
  import numpy
  from sktime.utils.numba.njit import njit
label_desc: Use image node_id 2 for calling a global function with example usage: _check_line_steps(line) and returns: line