code: def _simplify_variant(variant):
      """Returns a new Variant with only the basic fields of variant."""
  
      def _simplify_variant_call(call):
          """Returns a new VariantCall with the basic fields of call."""
          return variants_pb2.VariantCall(
              call_set_name=call.call_set_name,
              genotype=call.genotype,
              info=dict(call.info),
          )  # dict() is necessary to actually set info.
  
      return variants_pb2.Variant(
          reference_name=variant.reference_name,
          start=variant.start,
          end=variant.end,
          reference_bases=variant.reference_bases,
          alternate_bases=variant.alternate_bases,
          filter=variant.filter,
          quality=variant.quality,
          calls=[
              _simplify_variant_call(call) for call in variant.calls
          ],
      )
  
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 17 for calling a global function with example usage: _simplify_variant(variant) and returns: variants_pb2, variants_pb2