code: def test_contigs(self):
      # Our contigs can have a different order, descriptions are dropped, etc so
      # we need to check specific fields by hand.
      fasta_contigs = {
          contig.name: contig
          for contig in self.fasta_reader.header.contigs
      }
      mem_contigs = {
          contig.name: contig for contig in self.in_mem.header.contigs
      }
  
      self.assertEqual(fasta_contigs.keys(), mem_contigs.keys())
      for name, fasta_contig in fasta_contigs.items():
          self.assertContigsAreEqual(mem_contigs[name], fasta_contig)
  
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
  import six
  from third_party.nucleus.io import fasta
  from third_party.nucleus.io.python import reference
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
label_desc: Use image node_id 5 for calling the InMemoryFastaReaderTests obj's underlying member method code with example usage: obj.test_contigs() without return types