code: def example_set_variant(example, variant):
      """Sets the variant/encoded feature of example to variant.SerializeToString().
  
      Args:
        example: a tf.Example proto.
        variant: third_party.nucleus.protos.Variant protobuf containing information
          about a candidate variant call.
      """
      example.features.feature["variant/encoded"].bytes_list.value[
          :
      ] = [variant.SerializeToString()]
  
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 13 for calling a global function with example usage: example_set_variant(example, variant) without return types