code: def encoded_variant_type(variant):
      """Gets the EncodedVariantType for variant.
  
      This function examines variant and returns the EncodedVariantType that best
      describes the variation type of variant. For example, if variant has
      `reference_bases = "A"` and `alternative_bases = ["C"]` this function would
      return EncodedVariantType.SNP.
  
      Args:
        variant: nucleus.Variant proto. The variant whose EncodedVariantType we want
          to get.
  
      Returns:
        EncodedVariantType enum value.
      """
      if variant_utils.is_snp(variant):
          return EncodedVariantType.SNP
      elif variant_utils.is_indel(variant):
          return EncodedVariantType.INDEL
      else:
          return EncodedVariantType.UNKNOWN
  
file_path: deepvariant/deepvariant/dv_utils_using_clif.py
imports: import enum
  from deepvariant import dv_utils
  from deepvariant.protos import deepvariant_pb2
  from third_party.nucleus.util import ranges
  from third_party.nucleus.util import variant_utils
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: encoded_variant_type(variant) and returns: EncodedVariantType, EncodedVariantType, EncodedVariantType