class_docstr: Provide an interface for accessing the contents of a shapefile with the
  Python Shapefile Library (PyShp). See the PyShp
  `Readme <https://pypi.org/project/pyshp/>`_ for more information.
  
  The primary methods used on a BasicReader instance are
  :meth:`~cartopy.io.shapereader.BasicReader.records` and
  :meth:`~cartopy.io.shapereader.BasicReader.geometries`.
class_docstr_tok: ["Provide","an","interface","for","accessing","the","contents","of","a","shapefile","with","the","Python","Shapefile","Library","(","PyShp",")",".","See","the","PyShp","`","Readme","<","https",":","\/\/pypi.org\/project\/pyshp\/",">","`","_","for","more","information",".","The","primary","methods","used","on","a","BasicReader","instance","are",":","meth",":","`","~cartopy.io.shapereader.BasicReader.records","`","and",":","meth",":","`","~cartopy.io.shapereader.BasicReader.geometries","`","."]
code: def close(self):
      return self._reader.close()
  
imports: import io
  import itertools
  from pathlib import Path
  from urllib.error import HTTPError
  import shapefile
  import shapely.geometry
  from cartopy import config
  from cartopy.io import Downloader
label_desc: Use image node_id 2 for calling the BasicReader obj's underlying member method code with example usage: obj.close() and returns: self