class_docstr: Wrapper class for scikit-learn Decision Tree Regressor models.
docstr: Returns the path through nodes in the tree when classifying x. Last one is leaf, first one root node.
  
  :return: The indices of the nodes in the array structure of the tree.
docstr_tok: ["Returns","the","path","through","nodes","in","the","tree","when","classifying","x",".","Last","one","is","leaf",",","first","one","root","node",".",":","return",":","The","indices","of","the","nodes","in","the","array","structure","of","the","tree","."]
code: def get_decision_path(self, x: np.ndarray) -> np.ndarray:
      """
      Returns the path through nodes in the tree when classifying x. Last one is leaf, first one root node.
  
      :return: The indices of the nodes in the array structure of the tree.
      """
      if len(np.shape(x)) == 1:
          return self.model.decision_path(x.reshape(1, -1)).indices
  
      return self.model.decision_path(x).indices
  
imports: import logging
  import os
  import pickle
  from copy import deepcopy
  from typing import List, Optional, Tuple, Union, TYPE_CHECKING
  import numpy
  from art.estimators.scikitlearn import ScikitlearnEstimator
  from art.estimators.regression.regressor import RegressorMixin
  from art import config
label_desc: Use image node_id 5 for calling the ScikitlearnDecisionTreeRegressor obj's underlying member method code with example usage: obj.get_decision_path(x) and returns: self, self