code: def _raster_opener(cls, filename, *args, **kwargs):
          
          with rasterio.Env(**cls.get_gdal_env(filename)):
              try:
                  return rasterio.open(filename, *args, **kwargs)
              except (rasterio.errors.RasterioIOError, rasterio._err.CPLE_BaseError) as e:
                  raise GeoRaster2IOError(e)
docs: Return handler to open rasters (rasterio.open).