code: def test_out_of_bounds(self):
      # Check that a polygon that is completely out of the map boundary
      # doesn't produce an empty result.
      projection = ccrs.TransverseMercator(
          central_longitude=0, approx=True
      )
  
      polys = [
          # All valid
          ([(86, -1), (86, 1), (88, 1), (88, -1)], 1),
          # One out of backwards projection range
          ([(86, -1), (86, 1), (130, 1), (88, -1)], 1),
          # An out of backwards projection range segment
          ([(86, -1), (86, 1), (130, 1), (130, -1)], 1),
          # All out of backwards projection range
          ([(120, -1), (120, 1), (130, 1), (130, -1)], 0),
      ]
  
      # Try all four combinations of valid/NaN vs valid/NaN.
      for coords, expected_polys in polys:
          polygon = sgeom.Polygon(coords)
          multi_polygon = projection.project_geometry(polygon)
          assert len(multi_polygon.geoms) == expected_polys
  
imports: import numpy
  import pytest
  import shapely.geometry
  import shapely.wkt
  import cartopy.crs
label_desc: Use image node_id 3 for calling the TestBoundary obj's underlying member method code with example usage: obj.test_out_of_bounds() without return types