code: def get_srn_sample_proto(element):
      """Converts a tf.Example to a list of tensors."""
      feature_description = {
          "name": tf.io.FixedLenFeature([], tf.string),
          "view": tf.io.FixedLenFeature([], tf.int64),
          "shape_index": tf.io.FixedLenFeature([], tf.int64),
          "image_data": tf.io.FixedLenFeature([], tf.string),
          "image_size": tf.io.FixedLenFeature([3], tf.int64),
          "focal": tf.io.FixedLenFeature([2], tf.float32),
          "principal_point": tf.io.FixedLenFeature([2], tf.float32),
          "rotation_matrix": tf.io.FixedLenFeature([9], tf.float32),
          "translation_vector": tf.io.FixedLenFeature([3], tf.float32),
          "w2v_alpha": tf.io.FixedLenFeature([3], tf.float32),
          "w2v_beta": tf.io.FixedLenFeature([3], tf.float32),
      }
  
      values = tf.io.parse_single_example(element, feature_description)
  
      filename = tf.squeeze(values["name"])
      view = tf.squeeze(values["view"])
      shape_index = tf.squeeze(values["shape_index"])
      image_data = tf.squeeze(values["image_data"])
      focal = tf.squeeze(values["focal"])
      principal_point = tf.squeeze(values["principal_point"])
      rotation_matrix = tf.squeeze(values["rotation_matrix"])
      translation_vector = tf.squeeze(values["translation_vector"])
      w2v_alpha = tf.squeeze(values["w2v_alpha"])
      w2v_beta = tf.squeeze(values["w2v_beta"])
  
      image = tf.cast(tf.io.decode_png(image_data), tf.float32) / 255.0
      rotation_matrix = tf.reshape(rotation_matrix, [3, 3])
      translation_vector = tf.reshape(translation_vector, [3, 1])
  
      return (
          filename,
          view,
          shape_index,
          image,
          focal,
          principal_point,
          rotation_matrix,
          translation_vector,
          w2v_alpha,
          w2v_beta,
      )
  
file_path: graphics/tensorflow_graphics/projects/radiance_fields/data_loaders.py
imports: import json
  import os
  from typing import Optional
  import numpy
  from PIL import Image
  import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: get_srn_sample_proto(element) and returns: filename,  view,  shape_index,  image,  focal,  principal_point,  rotation_matrix,  translation_vector,  w2v_alpha,  w2v_beta