code: def variant_from_example(example):
      """Extract Variant object from the 'variant/encoded' feature of an Example.
  
      Args:
        example: a DeepVariant-style make_examples output example.
  
      Returns:
        A Nucleus Variant.
      """
      features = example.features.feature
      var_string = features["variant/encoded"].bytes_list.value[0]
      return variants_pb2.Variant.FromString(var_string)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import enum
  import math
  from typing import List, NamedTuple, Tuple
  from etils import epath
  from IPython import display
  import numpy
  from PIL import Image
  from PIL import ImageDraw
  from third_party.nucleus.protos import variants_pb2
label_desc: Use image node_id 13 for calling a global function with example usage: variant_from_example(example) and returns: variants_pb2