code: def test_query_edge_cases(self):
      reader = fasta.InMemoryFastaReader([("1", 0, "ACGT")])
      # Check that we can query the first base correctly.
      self.assertEqual(reader.query(ranges.make_range("1", 0, 1)), "A")
      # Check that we can query the last base correctly.
      self.assertEqual(reader.query(ranges.make_range("1", 3, 4)), "T")
      # Check that we can query the entire sequence correctly.
      self.assertEqual(
          reader.query(ranges.make_range("1", 0, 4)), "ACGT"
      )
  
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 4 for calling the InMemoryFastaReaderTests obj's underlying member method code with example usage: obj.test_query_edge_cases() without return types