docstr: Asserts variant equality allowing numerical differences in GLs.
docstr_tok: ["Asserts","variant","equality","allowing","numerical","differences","in","GLs","."]
code: def _assert_variants_equal_with_likelihood_tolerance(
      self, v1, v2, tolerance=1e-10
  ):
      """Asserts variant equality allowing numerical differences in GLs."""
      gl1 = list(v1.calls[0].genotype_likelihood)
      gl2 = list(v2.calls[0].genotype_likelihood)
      np.testing.assert_allclose(gl1, gl2, rtol=tolerance)
      v1.calls[0].genotype_likelihood[:] = []
      v2.calls[0].genotype_likelihood[:] = []
      self.assertEqual(v1, v2)
  
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 13 for calling the ResolveOverlappingVariantsTest obj's underlying member method code with example usage: obj._assert_variants_equal_with_likelihood_tolerance(v1, v2, tolerance) without return types