code: def test_project_degenerate_poly(self):
      # Tests for the same bug as test_attach_short_loop.
      # This test calls only the public API, but will cause a
      # segmentation fault when it fails.
      # Geometry comes from a matplotlib contourf.
      polygon = shapely.wkt.loads(
          "POLYGON (("
          "178.9687499944748 70.625, "
          "179.0625 71.875, "
          "180.9375 71.875, "
          "179.0625 71.875, "
          "177.1875 71.875, "
          "178.9687499944748 70.625))"
      )
  
      source = ccrs.PlateCarree()
      target = ccrs.PlateCarree()
      # Before fixing, this would cause a segmentation fault.
      polygons = target.project_geometry(polygon, source)
      assert isinstance(polygons, sgeom.MultiPolygon)
  
imports: import numpy
  import pytest
  import shapely.geometry
  import shapely.wkt
  import cartopy.crs
label_desc: Use image node_id 13 for calling the TestMisc obj's underlying member method code with example usage: obj.test_project_degenerate_poly() without return types