code: def format_instance_information(obj):
      return {
          "mass": obj["mass"],
          "friction": obj["friction"],
          "restitution": obj["restitution"],
          "positions": np.array(obj["positions"], np.float32),
          "quaternions": np.array(obj["quaternions"], np.float32),
          "velocities": np.array(obj["velocities"], np.float32),
          "angular_velocities": np.array(
              obj["angular_velocities"], np.float32
          ),
          "bboxes_3d": np.array(obj["bboxes_3d"], np.float32),
          "image_positions": np.array(
              obj["image_positions"], np.float32
          ),
          "bboxes": [
              tfds.features.BBox(*bbox) for bbox in obj["bboxes"]
          ],
          "bbox_frames": np.array(obj["bbox_frames"], dtype=np.uint16),
          "visibility": np.array(obj["visibility"], dtype=np.uint16),
      }
  
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 7 for calling a global function with example usage: format_instance_information(obj) and returns: dict