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"]
          ],
      }
  
imports: import dataclasses
  import json
  import logging
  import imageio
  import numpy
  import png
  import tensorflow
  import tensorflow_datasets.public_api
  from typing import List, Dict, Union
label_desc: Use image node_id 5 for calling a global function with example usage: format_events_information(events) and returns: dict