code: def alt_allele_indices_from_example(example):
      """Extract indices of the particular alt allele(s) the example represents.
  
      Args:
        example: a DeepVariant make_examples output example.
  
      Returns:
        list of indices.
      """
      features = example.features.feature
      val = features["alt_allele_indices/encoded"].bytes_list.value[0]
      # Extract the encoded proto into unsigned integers and convert to regular ints
      mapped = [int(x) for x in np.frombuffer(val, dtype=np.uint8)]
      # Format is [<field id + type>, <number of elements in array>, ...<array>].
      # Extract the array only, leaving out the metadata.
      return mapped[2:]
  
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 15 for calling a global function with example usage: alt_allele_indices_from_example(example) and returns: mapped