code: def test_polygon_boundary_attachment(self):
      # Check the polygon is attached to the boundary even when no
      # intermediate point for one of the crossing segments would normally
      # exist.
      polygon = sgeom.Polygon([(-10, 30), (10, 60), (10, 50)])
      projection = ccrs.Robinson(170.6)
      # This will raise an exception if the polygon/boundary intersection
      # fails.
      projection.project_geometry(polygon)
  
imports: import numpy
  import pytest
  import shapely.geometry
  import shapely.wkt
  import cartopy.crs
label_desc: Use image node_id 2 for calling the TestBoundary obj's underlying member method code with example usage: obj.test_polygon_boundary_attachment() without return types