code: def test_get_truth_variants(self):
      v1 = test_utils.make_variant(chrom="1", start=10)
      v2 = test_utils.make_variant(chrom="1", start=20)
      v3_filtered = test_utils.make_variant(
          chrom="1", start=30, filters=["FAIL"]
      )
      v4_del = test_utils.make_variant(
          chrom="1", start=40, alleles=["AAAA", "A"]
      )
      v5_non_confident = test_utils.make_variant(chrom="1", start=150)
  
      variants = [v1, v2, v3_filtered, v4_del, v5_non_confident]
      reader = vcf.InMemoryVcfReader(variants=variants)
      confident_regions = ranges.RangeSet(
          [ranges.make_range("1", 1, 100)]
      )
      labeler = PlaceholderVariantLabeler(
          truth_vcf_reader=reader, confident_regions=confident_regions
      )
  
      # Check that we get v1 and v2 specifically when only they are covered by the
      # query.
      self.assertEqual(
          list(
              labeler._get_truth_variants(
                  ranges.parse_literal("1:1-15")
              )
          ),
          [v1],
      )
      self.assertEqual(
          list(
              labeler._get_truth_variants(
                  ranges.parse_literal("1:15-25")
              )
          ),
          [v2],
      )
  
      # We don't include filtered variants.
      self.assertEqual(
          list(
              labeler._get_truth_variants(
                  ranges.parse_literal("1:25-35")
              )
          ),
          [],
      )
  
      # Check that we get all overlapping variants of our query.
      for del_query in ["1:35-45", "1:42-43", "1:38-42", "1:42-50"]:
          self.assertEqual(
              list(
                  labeler._get_truth_variants(
                      ranges.parse_literal(del_query)
                  )
              ),
              [v4_del],
          )
  
      # Checks that a simple query gets all our non-filtered variants.
      self.assertEqual(
          list(
              labeler._get_truth_variants(
                  ranges.parse_literal("1:1-100")
              )
          ),
          [v1, v2, v4_del],
      )
      # Even through our query covers v5, it's not confident, so we don't get it.
      self.assertEqual(
          list(
              labeler._get_truth_variants(
                  ranges.parse_literal("1:1-1000")
              )
          ),
          [v1, v2, v4_del],
      )
  
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 1 for calling the VariantLabelerTest obj's underlying member method code with example usage: obj.test_get_truth_variants() without return types