code: def test_find_matching_allele_frequency(
      self, variant, expected_return, label
  ):
      ref_reader = fasta.IndexedFastaReader(testdata.GRCH38_FASTA)
      vcf_reader = vcf.VcfReader(testdata.VCF_WITH_ALLELE_FREQUENCIES)
      allele_frequencies = (
          allele_frequency.find_matching_allele_frequency(
              variant, vcf_reader, ref_reader
          )
      )
      # Compare keys.
      self.assertSetEqual(
          set(allele_frequencies.keys()),
          set(expected_return.keys()),
          msg=label,
      )
      # Compare values (almost equal).
      for key in allele_frequencies.keys():
          self.assertAlmostEqual(
              allele_frequencies[key], expected_return[key], msg=label
          )
  
file_path: deepvariant/deepvariant/allele_frequency_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from third_party.nucleus.io import fasta
  from third_party.nucleus.io import vcf
  from third_party.nucleus.protos import variants_pb2
  from deepvariant import allele_frequency
  from deepvariant import testdata
  from deepvariant.protos import deepvariant_pb2
label_desc: Use image node_id 3 for calling the AlleleFrequencyTest obj's underlying member method code with example usage: obj.test_find_matching_allele_frequency(variant, expected_return, label) without return types