code: def count_objects():
      """Print statistics over number of objects."""
  
      tfrecord_path = os.path.join(FLAGS.tfrecords_dir, FLAGS.split)
      mapping_function = extract_protos.decode_bytes_multiple
      buffer_size, shuffle, cycle_length = 500, False, 1
      dataset = io.get_dataset(
          tfrecord_path,
          mapping_function,
          buffer_size,
          shuffle,
          cycle_length,
      )
      i = 0
      my_dict = {}
      my_dict[3001627] = set()
      my_dict[4256520] = set()
      my_dict[4379243] = set()
      my_dict[2876657] = set()
      my_dict[2880940] = set()
      my_dict[3797390] = set()
      for d in dataset:
          classes = d["classes"]
          mesh_names = d["mesh_names"]
          for i, m in enumerate(list(mesh_names.numpy())):
              my_dict[list(classes.numpy())[i]].add(m)
          i += 1
      print(f"Chairs: \t {len(my_dict[3001627])}")
      print(f"Sofa: \t {len(my_dict[4256520])}")
      print(f"Table: \t {len(my_dict[4379243])}")
      print(f"Bottle: \t {len(my_dict[2876657])}")
      print(f"Bowl: \t {len(my_dict[2880940])}")
      print(f"Mug: \t {len(my_dict[3797390])}")
  
imports: import os
  from absl import app
  from absl import flags
  import tensorflow_graphics.projects.points_to_3Dobjects.data_preparation.extract_protos
  import tensorflow_graphics.projects.points_to_3Dobjects.utils.io
label_desc: Use image node_id 1 for calling a global function with example usage: count_objects() without return types