code: def _changes(path):
      """
      >>> _changes([2, 3, 0, 5])
      [2, 1, -3, 5]
      >>> _changes([2])
      [2]
      """
      res = [path[0]]
      res += [p - p_prev for p, p_prev in zip(path[1:], path)]
      return res
  
file_path: eli5/eli5/lightgbm.py
imports: from __future__ import absolute_import, division
  from collections import defaultdict
  from typing import DefaultDict, Optional
  import numpy
  import lightgbm
  from eli5.explain import explain_weights, explain_prediction
  from eli5._feature_importances import get_feature_importance_explanation
  from eli5.sklearn.utils import handle_vec, get_X, get_X0, add_intercept, predict_proba
  from eli5._decision_path import get_decision_path_explanation
label_desc: Use image node_id 7 for calling a global function with example usage: _changes(path) and returns: res