class_docstr: Dataclass containing information about a label assigned to a variant.
  
  Attributes:
    is_confident: bool. True if we could confidently assign a label to this
      variant, False otherwise.
    variant: nucleus.protos.Variant proto that we assigned a label for.
    genotype: tuple of ints. The labeled genotype (e.g., (0, 1) for a het) in
      the standard nucleus.proto.VariantCall style. Genotype can be None if the
      labeler doesn't have any genotype to assign. If Genotype is not None, the
      genotype of variant will be set to genotype.
class_docstr_tok: ["Dataclass","containing","information","about","a","label","assigned","to","a","variant",".","Attributes",":","is_confident",":","bool",".","True","if","we","could","confidently","assign","a","label","to","this","variant",",","False","otherwise",".","variant",":","nucleus.protos.Variant","proto","that","we","assigned","a","label","for",".","genotype",":","tuple","of","ints",".","The","labeled","genotype","(","e.g.",",","(","0",",","1",")","for","a","het",")","in","the","standard","nucleus.proto.VariantCall","style",".","Genotype","can","be","None","if","the","labeler","does","n't","have","any","genotype","to","assign",".","If","Genotype","is","not","None",",","the","genotype","of","variant","will","be","set","to","genotype","."]
code: def set_variant_genotype(self, variant):
      if not variant.calls:
          variant.calls.add(genotype=self.genotype)
      else:
          variant.calls[0].genotype[:] = self.genotype
  
file_path: deepvariant/deepvariant/labeler/variant_labeler.py
imports: import abc
  from absl import logging
  from third_party.nucleus.util import variant_utils
  from third_party.nucleus.util import variantcall_utils
  from deepvariant import dv_utils
label_desc: Use image node_id 4 for calling the VariantLabel obj's underlying member method code with example usage: obj.set_variant_genotype(variant) without return types