code: def format_events_information(events):
      return {
          "collisions": [
              {
                  "instances": np.array(
                      c["instances"], dtype=np.uint16
                  ),
                  "frame": c["frame"],
                  "force": c["force"],
                  "position": np.array(c["position"], dtype=np.float32),
                  "image_position": np.array(
                      c["image_position"], dtype=np.float32
                  ),
                  "contact_normal": np.array(
                      c["contact_normal"], dtype=np.float32
                  ),
              }
              for c in events["collisions"]
          ],
      }
  
file_path: kubric/kubric/datasets/utils.py
imports: import json
  import numpy
  import tensorflow
  import tensorflow_datasets
  from kubric import file_io
label_desc: Use image node_id 5 for calling a global function with example usage: format_events_information(events) and returns: dict