code: def distance(signal):
      """Computes signal traveled distance.
  
      Calculates the total distance traveled by the signal
      using the hypotenuse between 2 datapoints.
  
      Feature computational cost: 1
  
      Parameters
      ----------
      signal : nd-array
          Input from which distance is computed
  
      Returns
      -------
      float
          Signal distance
  
      """
      diff_sig = np.diff(signal).astype(float)
      return np.sum([np.sqrt(1 + diff_sig**2)])
  
imports: import scipy.signal
  from tsfel.feature_extraction.features_utils import *
label_desc: Use image node_id 9 for calling a global function with example usage: distance(signal) and returns: np