code: def test_context(self):
      with rasterio.open("tests/data/RGB.byte.tif") as s:
          self.assertEqual(s.name, "tests/data/RGB.byte.tif")
          self.assertEqual(s.driver, "GTiff")
          self.assertEqual(s.closed, False)
          self.assertEqual(s.count, 3)
          self.assertEqual(s.width, 791)
          self.assertEqual(s.height, 718)
          self.assertEqual(s.shape, (718, 791))
          self.assertEqual(s.dtypes, tuple([rasterio.ubyte] * 3))
          self.assertEqual(s.nodatavals, (0, 0, 0))
          self.assertEqual(s.indexes, (1, 2, 3))
          self.assertEqual(s.crs.to_epsg(), 32618)
          self.assertTrue(s.crs.wkt.startswith("PROJCS"), s.crs.wkt)
          for i, v in enumerate(
              (101985.0, 2611485.0, 339315.0, 2826915.0)
          ):
              self.assertAlmostEqual(s.bounds[i], v)
          self.assertEqual(
              s.transform,
              (
                  300.0379266750948,
                  0.0,
                  101985.0,
                  0.0,
                  -300.041782729805,
                  2826915.0,
                  0,
                  0,
                  1.0,
              ),
          )
          self.assertEqual(s.meta["crs"], s.crs)
          self.assertEqual(
              repr(s),
              "<open DatasetReader name='tests/data/RGB.byte.tif' "
              "mode='r'>",
          )
      self.assertEqual(s.closed, True)
      self.assertEqual(s.count, 3)
      self.assertEqual(s.width, 791)
      self.assertEqual(s.height, 718)
      self.assertEqual(s.shape, (718, 791))
      self.assertEqual(s.dtypes, tuple([rasterio.ubyte] * 3))
      self.assertEqual(s.nodatavals, (0, 0, 0))
      self.assertEqual(s.crs.to_epsg(), 32618)
      self.assertEqual(
          s.transform,
          (
              300.0379266750948,
              0.0,
              101985.0,
              0.0,
              -300.041782729805,
              2826915.0,
              0,
              0,
              1.0,
          ),
      )
      self.assertEqual(
          repr(s),
          "<closed DatasetReader name='tests/data/RGB.byte.tif' "
          "mode='r'>",
      )
  
imports: from hashlib import md5
  import unittest
  import numpy
  import pytest
  import rasterio
  from rasterio.errors import DatasetIOShapeError
label_desc: Use image node_id 1 for calling the ReaderContextTest obj's underlying member method code with example usage: obj.test_context() without return types