code: def setup_class(self, request):
      LAKES_PATH = (
          Path(__file__).parent
          / "lakes_shapefile"
          / "ne_110m_lakes.shp"
      )
      # run tests with both available Readers
      if request.param == 0:
          self.reader = shp.BasicReader(LAKES_PATH)
      elif not shp._HAS_FIONA:
          pytest.skip("Fiona library not available")
      else:
          self.reader = shp.FionaReader(LAKES_PATH)
      names = [
          record.attributes["name"] for record in self.reader.records()
      ]
      # Choose a nice small lake
      self.lake_name = "Lago de\rNicaragua"
      self.lake_index = names.index(self.lake_name)
      self.test_lake_geometry = list(self.reader.geometries())[
          self.lake_index
      ]
      self.test_lake_record = list(self.reader.records())[
          self.lake_index
      ]
  
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 1 for calling the TestLakes obj's underlying member method code with example usage: obj.setup_class(request) without return types