code: def format_camera_information(metadata):
      return {
          "focal_length": metadata["camera"]["focal_length"],
          "sensor_width": metadata["camera"]["sensor_width"],
          "field_of_view": metadata["camera"]["field_of_view"],
          "positions": np.array(
              metadata["camera"]["positions"], np.float32
          ),
          "quaternions": np.array(
              metadata["camera"]["quaternions"], np.float32
          ),
      }
  
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 3 for calling a global function with example usage: format_camera_information(metadata) and returns: dict