code: def test_vcf_caller_end2end_outputs(self):
      # Confirming that the proposed VCF (input) has the same variants
      # as the VCF output converted from the output of make_examples.
      variants = list(
          labeled_examples_to_vcf.examples_to_variants(
              testdata.GOLDEN_VCF_CANDIDATE_IMPORTER_TRAINING_EXAMPLES
          )
      )
      with vcf.VcfReader(
          testdata.TRUTH_VARIANTS_VCF
      ) as proposed_vcf_reader:
          # This checks the keys (like chr20:10099832:A->G) are the same.
          self.assertEqual(
              [variant_utils.variant_key(v1) for v1 in variants],
              [
                  variant_utils.variant_key(v2)
                  for v2 in proposed_vcf_reader.iterate()
              ],
          )
  
      with vcf.VcfReader(
          testdata.TRUTH_VARIANTS_VCF
      ) as proposed_vcf_reader:
          self.assertEqual(
              [
                  variant_utils.genotype_as_alleles(v1)
                  for v1 in variants
              ],
              [
                  variant_utils.genotype_as_alleles(
                      variant_utils.unphase_all_genotypes(v2)
                  )
                  for v2 in proposed_vcf_reader.iterate()
              ],
          )
  
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 4 for calling the VcfCandidateImporterTests obj's underlying member method code with example usage: obj.test_vcf_caller_end2end_outputs() without return types