code: def centernet_proto_get(serialized):
      """Extracts the contents from a VoxelSample proto to tensors."""
      message_type = "giotto_occluded_primitives.CenterNetSample"
      field_names = [
          "name",
          "image_data",
          "image_size",
          "center2d",
          "center3d",
          "box_dims2d",
          "box_dims3d",
          "rotation",
          "translation",
          "rt",
          "k",
      ]
      output_types = [
          tf.string,
          tf.string,
          tf.int32,
          tf.float32,
          tf.float32,
          tf.float32,
          tf.float32,
          tf.float32,
          tf.float32,
          tf.float32,
          tf.float32,
      ]
      _, values = decode_proto(
          serialized, message_type, field_names, output_types
      )
      filename = tf.squeeze(values[0])
      image_data = tf.squeeze(values[1])
      image_size = tf.squeeze(values[2])
      center2d = tf.squeeze(values[3])
      center3d = tf.squeeze(values[4])
      box_dims2d = tf.squeeze(values[5])
      box_dims3d = tf.squeeze(values[6])
      rotation = tf.squeeze(values[7])
      translation = tf.squeeze(values[8])
      rt = tf.squeeze(values[9])
      k = tf.squeeze(values[10])
      image = tf.cast(
          tf.io.decode_image(image_data, channels=3), tf.float32
      )
      return (
          filename,
          image,
          image_size,
          center2d,
          center3d,
          box_dims2d,
          box_dims3d,
          rotation,
          translation,
          rt,
          k,
      )
  
file_path: graphics/tensorflow_graphics/projects/points_to_3Dobjects/data_preparation/extract_protos.py
imports: import math
  import tensorflow
  from tensorflow_graphics.geometry.transformation import rotation_matrix_3d
  from tensorflow_graphics.projects.points_to_3Dobjects.utils import tf_utils
label_desc: Use image node_id 1 for calling a global function with example usage: centernet_proto_get(serialized) and returns: filename,  image,  image_size,  center2d,  center3d,  box_dims2d,  box_dims3d,  rotation,  translation,  rt,  k