docstr: Helper method to compare a generator of Variant protos to a list.
docstr_tok: ["Helper","method","to","compare","a","generator","of","Variant","protos","to","a","list","."]
code: def _assert_generator_of_variants_equals_expected(
      self, actual, expected
  ):
      """Helper method to compare a generator of Variant protos to a list."""
      self.assertIsInstance(actual, types.GeneratorType)
      actual_list = list(actual)
      self.assertEqual(len(actual_list), len(expected))
      for actual_variant, expected_variant in zip(
          actual_list, expected
      ):
          self._assert_variants_equal_with_likelihood_tolerance(
              actual_variant, expected_variant
          )
  
imports: import types
  from absl import flags
  from absl.testing import absltest
  from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  from third_party.nucleus.testing import test_utils
  from deepvariant import haplotypes
label_desc: Use image node_id 12 for calling the ResolveOverlappingVariantsTest obj's underlying member method code with example usage: obj._assert_generator_of_variants_equals_expected(actual, expected) without return types