code: def example_image_shape(example):
      """Gets the image shape field from example as a list of int64."""
      if (
          len(example.features.feature["image/shape"].int64_list.value)
          != 3
      ):
          raise ValueError(
              "Invalid image/shape: we expect to find an image/shape "
              "field with length 3."
          )
      return example.features.feature["image/shape"].int64_list.value[
          0:3
      ]
  
imports: import json
  from typing import Optional
  from absl import logging
  import numpy
  import tensorflow
  from deepvariant.protos import deepvariant_pb2
  from third_party.nucleus.io import sharded_file_utils
  from third_party.nucleus.io import tfrecord
  from third_party.nucleus.protos import variants_pb2
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 9 for calling a global function with example usage: example_image_shape(example) and returns: example