code: def test_bounds(self):
      if isinstance(self.reader, shp.BasicReader):
          # tests that a file which has a record with a bbox can
          # use the bbox without first creating the geometry
          record = next(self.reader.records())
          assert (
              not record._geometry
          ), "The geometry was loaded before it was needed."
          assert len(record._bounds) == 4
          assert record._bounds == record.bounds
          assert (
              not record._geometry
          ), "The geometry was loaded in order to create the bounds."
      else:
          pytest.skip("Fiona reader doesn't support lazy loading")
  
file_path: cartopy/lib/cartopy/tests/test_shapereader.py
imports: from pathlib import Path
  import numpy
  from numpy.testing import assert_array_almost_equal
  import pytest
  import shapely.geometry
  import cartopy.io.shapereader
label_desc: Use image node_id 4 for calling the TestLakes obj's underlying member method code with example usage: obj.test_bounds() without return types