code: def fill_counts(partition_tree):
      """This updates the"""
      M = partition_tree.shape[0] + 1
      for i in range(partition_tree.shape[0]):
          val = 0
          if partition_tree[i, 0] < M:
              ind = int(partition_tree[i, 0])
              val += 1
          else:
              ind = int(partition_tree[i, 0]) - M
              val += partition_tree[ind, 3]
          if partition_tree[i, 1] < M:
              ind = int(partition_tree[i, 1])
              val += 1
          else:
              ind = int(partition_tree[i, 1]) - M
              val += partition_tree[ind, 3]
          partition_tree[i, 3] = val
  
file_path: shap/shap/plots/_utils.py
imports: import matplotlib.pyplot
  import numpy
  from ..None import Explanation
  from ..utils import OpChain
  from .None import colors
label_desc: Use image node_id 8 for calling a global function with example usage: fill_counts(partition_tree) without return types