code: def blender_sample_proto_get(element):
      """Extracts the contents from a VoxelSample proto to tensors."""
      _, values = decode_proto(
          element,
          "giotto_blender.BlenderSample",
          [
              "name",
              "image_data",
              "height",
              "width",
              "obj",
              "rotation",
              "translation",
              "obj_color",
              "floor_color",
              "light",
              "envmap",
              "elevation",
              "rt",
              "k",
          ],
          [
              tf.string,
              tf.string,
              tf.int32,
              tf.int32,
              tf.string,
              tf.float32,
              tf.float32,
              tf.float32,
              tf.float32,
              tf.float32,
              tf.string,
              tf.float32,
              tf.float32,
              tf.float32,
          ],
      )
      filename = tf.squeeze(values[0])
      image_data = tf.squeeze(values[1])
      obj_name = tf.squeeze(values[4])
      object_rotation = values[5]
      object_translation = tf.expand_dims(values[6], axis=0)
      floor_color = values[8]
      light_position = values[9]
      object_elevation = values[11]
      camera_extrinsics = tf.reshape(values[12], [3, 4])
      camera_intrinsics = tf.reshape(values[13], [3, 3])
  
      camera_rotation_matrix, camera_translation_vector = tf.split(
          camera_extrinsics, [3, 1], axis=-1
      )
      return (
          filename,
          image_data,
          obj_name,
          object_rotation,
          object_translation,
          floor_color,
          light_position,
          object_elevation,
          camera_rotation_matrix,
          camera_translation_vector,
          camera_intrinsics,
      )
  
file_path: graphics/tensorflow_graphics/projects/neural_voxel_renderer/prepare_tfrecords/generate_tfrecords_nvr_plus.py
imports: import os
  import re
  from absl import app
  from absl import flags
  import numpy
  import tensorflow
  from tensorflow_graphics.projects.neural_voxel_renderer import helpers
  from tensorflow_graphics.projects.neural_voxel_renderer.prepare_tfrecords import data_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: blender_sample_proto_get(element) and returns: filename,  image_data,  obj_name,  object_rotation,  object_translation,  floor_color,  light_position,  object_elevation,  camera_rotation_matrix,  camera_translation_vector,  camera_intrinsics