code: def _node_value(tree, node_id):
      if tree.n_outputs == 1:
          return tree.value[node_id][0, :]
      else:
          return tree.value[node_id]
  
file_path: eli5/eli5/sklearn/treeinspect.py
imports: from __future__ import absolute_import, division
  from sklearn.base import ClassifierMixin
  from sklearn.tree import _tree, export_graphviz
  from eli5.base import TreeInfo, NodeInfo
label_desc: Use image node_id 6 for calling a global function with example usage: _node_value(tree, node_id) and returns: tree, tree