code: def test_genotype_from_matched_truth(
      self,
      variant_alleles,
      alt_alleles,
      truth_alleles,
      truth_gt,
      expected_genotype,
      expected_label,
  ):
      variant = test_utils.make_variant(
          start=10, alleles=variant_alleles
      )
      truth_variant = test_utils.make_variant(
          start=10, alleles=truth_alleles, gt=truth_gt
      )
      self.assertEqual(
          expected_genotype,
          variant_labeler._genotype_from_matched_truth(
              variant, truth_variant
          ),
      )
      labeled = variant_labeler.VariantLabel(
          is_confident=True, variant=variant, genotype=expected_genotype
      )
      indices = [variant_alleles.index(alt) - 1 for alt in alt_alleles]
      self.assertEqual(
          labeled.label_for_alt_alleles(indices), expected_label
      )
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from third_party.nucleus.io import vcf
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
  from deepvariant import testdata
  from deepvariant.labeler import variant_labeler
label_desc: Use image node_id 2 for calling the VariantLabelerTest obj's underlying member method code with example usage: obj.test_genotype_from_matched_truth(variant_alleles, alt_alleles, truth_alleles, truth_gt, expected_genotype, expected_label) without return types