code: def test_get_node_nsamples_by_class(shadow_dec_tree):
      assert np.array_equal(
          shadow_dec_tree.get_node_nsamples_by_class(0),
          np.array([549, 342]),
      )
      assert np.array_equal(
          shadow_dec_tree.get_node_nsamples_by_class(1),
          np.array([81, 233]),
      )
      assert np.array_equal(
          shadow_dec_tree.get_node_nsamples_by_class(3),
          np.array([1, 1]),
      )
      assert np.array_equal(
          shadow_dec_tree.get_node_nsamples_by_class(5),
          np.array([72, 72]),
      )
      assert np.array_equal(
          shadow_dec_tree.get_node_nsamples_by_class(10),
          np.array([5, 9]),
      )
      assert np.array_equal(
          shadow_dec_tree.get_node_nsamples_by_class(11),
          np.array([404, 55]),
      )
  
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 27 for calling a global function with example usage: test_get_node_nsamples_by_class(shadow_dec_tree) without return types