code: def to_raise(self, error_type, error_match):
      _expected_exceptions[self.composite_key] = _ExpectedError(
          error_type, error_match
      )
  
file_path: geopandas/geopandas/io/tests/test_file_geom_types_drivers.py
imports: import os
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  import geopandas
  from geopandas import GeoDataFrame
  from geopandas.testing import assert_geodataframe_equal
  import pytest
  from .test_file import FIONA_MARK, PYOGRIO_MARK
label_desc: Use image node_id 2 for calling the _ExpectedErrorBuilder obj's underlying member method code with example usage: obj.to_raise(error_type, error_match) without return types