code: def example_denovo_label(
      example: example_pb2.Example,
  ) -> Optional[int]:
      """Gets the label field from example as a string.
  
      Args:
        example: A tf.Example containing DeepVariant example.
  
      Returns:
        De novo label for the example.
      """
      if "denovo_label" not in example.features.feature:
          return None
      return int(
          example.features.feature["denovo_label"].int64_list.value[0]
      )
  
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 8 for calling a global function with example usage: example_denovo_label(example) and returns: int, None