code: def test_wrap(self, fasta_filename, keep_true_case, expected_bases):
      chr_names = ["chrM", "chr1", "chr2"]
      chr_lengths = [100, 76, 121]
      fasta = test_utils.genomics_core_testdata(fasta_filename)
      fai = test_utils.genomics_core_testdata(fasta_filename + ".fai")
      options = fasta_pb2.FastaReaderOptions(
          keep_true_case=keep_true_case
      )
      with reference.IndexedFastaReader.from_file(
          fasta, fai, options
      ) as ref:
          self.assertEqual(ref.contig_names, chr_names)
          self.assertEqual(
              ref.bases(ranges.make_range("chrM", 22, 27)),
              expected_bases,
          )
  
          self.assertTrue(
              ref.is_valid_interval(ranges.make_range("chrM", 1, 10))
          )
          self.assertFalse(
              ref.is_valid_interval(
                  ranges.make_range("chrM", 1, 100000)
              )
          )
  
          self.assertLen(ref.contigs, 3)
          self.assertEqual([c.name for c in ref.contigs], chr_names)
          self.assertEqual(
              [c.n_bases for c in ref.contigs], chr_lengths
          )
          for contig in ref.contigs:
              self.assertEqual(ref.contig(contig.name), contig)
              self.assertTrue(ref.has_contig(contig.name))
              self.assertFalse(ref.has_contig(contig.name + ".unknown"))
  
file_path: deepvariant/third_party/nucleus/io/python/reference_wrap_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from absl.testing import parameterized
  from third_party.nucleus.io.python import reference
  from third_party.nucleus.protos import fasta_pb2
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
label_desc: Use image node_id 1 for calling the WrapReferenceTest obj's underlying member method code with example usage: obj.test_wrap(fasta_filename, keep_true_case, expected_bases) without return types