code: def test_calls_from_vcf(self):
      # Our test AlleleCounts are 5 positions:
      #
      # 10: A ref [no reads]
      # 11: G/C variant
      # 12: G ref [no reads]
      # 13: G ref [no reads]
      # 14: T/C variant
      #
      # The ref sites have no reads for ref or any alt simply because it
      # simplifies comparing them with the expected variant genotype likelihoods.
      # We aren't testing the correctness of the gvcf calculation here (that's
      # elsewhere) but rather focusing here on the separation of variants from
      # gvcf records, and the automatic merging of the gvcf blocks.
      allele_counter = self.fake_allele_counter(
          10,
          [
              (0, 0, "A"),
              (10, 10, "G"),
              (0, 0, "G"),
              (0, 0, "G"),
              (10, 10, "T"),
          ],
      )
      allele_counter_dict = {"SAMPLE_ID": allele_counter}
      fake_candidates = [
          deepvariant_pb2.DeepVariantCall(
              variant=test_utils.make_variant(
                  alleles=["G", "C"], start=11
              )
          ),
          deepvariant_pb2.DeepVariantCall(
              variant=test_utils.make_variant(
                  alleles=["T", "C"], start=14
              )
          ),
      ]
  
      caller = self.make_test_caller(0.01, 100)
      with mock.patch.object(
          caller, "cpp_variant_caller_from_vcf"
      ) as mock_cpp:
          mock_cpp.calls_from_vcf.return_value = fake_candidates
          candidates, _ = caller.calls_and_gvcfs(
              allele_counters=allele_counter_dict,
              target_sample="SAMPLE_ID",
              include_gvcfs=False,
          )
  
      mock_cpp.calls_from_vcf.assert_called_once_with(
          allele_counter, caller.vcf_reader
      )
      self.assertEqual(candidates, fake_candidates)
  
file_path: deepvariant/deepvariant/vcf_candidate_importer_test.py
imports: from unittest import mock
  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 variant_utils
  from deepvariant import testdata
  from deepvariant import vcf_candidate_importer
  from deepvariant.labeler import labeled_examples_to_vcf
  from deepvariant.protos import deepvariant_pb2
label_desc: Use image node_id 3 for calling the VcfCandidateImporterTests obj's underlying member method code with example usage: obj.test_calls_from_vcf() without return types