code: def get_node_nsamples(self, id):
      if self.children_right[id] == -1 and self.children_left[id] == -1:
          return self.tree_nodes[id]["leaf_count"]
      else:
          return self.tree_nodes[id]["internal_count"]
  
imports: from collections import defaultdict
  from typing import List, Mapping
  import numpy
  import pandas
  from lightgbm.basic import Booster
  from dtreeviz.models.shadow_decision_tree import ShadowDecTree, VisualisationNotYetSupportedError
  from dtreeviz import utils
label_desc: Use image node_id 16 for calling the ShadowLightGBMTree obj's underlying member method code with example usage: obj.get_node_nsamples(id) and returns: self, self