code: def test_get_tree_nodes(shadow_dec_tree):
      assert [node.id for node in shadow_dec_tree.leaves] == [
          3,
          4,
          6,
          7,
          10,
          11,
          13,
          14,
      ]
      assert [node.id for node in shadow_dec_tree.internal] == [
          2,
          5,
          1,
          9,
          12,
          8,
          0,
      ]
  
imports: import joblib
  import numpy
  import pytest
  from sklearn.tree import DecisionTreeRegressor, DecisionTreeClassifier
  from dtreeviz.models.sklearn_decision_trees import ShadowSKDTree
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_tree_nodes(shadow_dec_tree) without return types