code: def update_stat_nodes_granularity(self):
      q = queue.Queue()
      q.put(self.root_node)
      while not q.empty():
          node = q.get()
          node.granularity = self.get_same_level_max_node_depth(node)
          for child in node.children:
              q.put(child)
  
imports: import queue
label_desc: Use image node_id 3 for calling the StatTree obj's underlying member method code with example usage: obj.update_stat_nodes_granularity() without return types