code: def update_stats(example_stats, name, shapenet_stats):
      """Update evaluation statistics.
  
      Args:
        example_stats: Stats, the stats of one example.
        name: Tensor, hash name of the example as recorded in the dataset.
        shapenet_stats: dict, the current stats of the whole dataset.
      """
      cls_name, unused_var = mesh_name_helper(name)
      shapenet_stats[cls_name]["cnt"] += 1
      shapenet_stats[cls_name]["iou"] += example_stats.iou
      shapenet_stats[cls_name]["chamfer"] += example_stats.chamfer
      shapenet_stats[cls_name]["fscore"] += example_stats.fscore
      shapenet_stats["all"]["cnt"] += 1
      shapenet_stats["all"]["iou"] += example_stats.iou
      shapenet_stats["all"]["chamfer"] += example_stats.chamfer
      shapenet_stats["all"]["fscore"] += example_stats.fscore
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from os import path
  import numpy
  import scipy
  from skimage import measure
  import tensorflow.compat.v1
  from tensorflow_graphics.projects.cvxnet.lib import datasets
  from tensorflow_graphics.projects.cvxnet.lib import models
  from tensorflow_graphics.projects.cvxnet.lib.libmise import mise
  import trimesh
label_desc: Use image node_id 9 for calling a global function with example usage: update_stats(example_stats, name, shapenet_stats) without return types