code: def test_cuts(self):
      # Check that fragments do not start or end with one of the
      # original ... ?
      linear_ring = sgeom.LinearRing([(-10, 30), (10, 60), (10, 50)])
      projection = ccrs.Robinson(170.5)
      rings, multi_line_string = projection.project_geometry(
          linear_ring
      )
  
      # The original ring should have been split into multiple pieces.
      assert len(multi_line_string.geoms) > 1
      assert not rings
  
      def assert_close_to_boundary(xy):
          # Are we close to the boundary, which we are considering within
          # a fraction of the x domain limits
          limit = (
              projection.x_limits[1] - projection.x_limits[0]
          ) / 1e4
          assert (
              sgeom.Point(*xy).distance(projection.boundary) < limit
          ), "Bad topology near boundary"
  
      # Each line resulting from the split should be close to the boundary.
      # (This is important when considering polygon rings which need to be
      # attached to the boundary.)
      for line_string in multi_line_string.geoms:
          coords = list(line_string.coords)
          assert len(coords) >= 2
          assert_close_to_boundary(coords[0])
          assert_close_to_boundary(coords[-1])
  
file_path: cartopy/lib/cartopy/tests/test_linear_ring.py
imports: import numpy
  import pytest
  import shapely.geometry
  import cartopy.crs
label_desc: Use image node_id 1 for calling the TestBoundary obj's underlying member method code with example usage: obj.test_cuts() without return types