code: def test_out_of_bounds(self):
      # Check that a line that is completely out of the map boundary produces
      # a valid LineString
      projection = ccrs.TransverseMercator(
          central_longitude=0, approx=True
      )
  
      # For both start & end, define a point that results in well-defined
      # projection coordinates and one that results in NaN.
      start_points = [(86, 0), (130, 0)]
      end_points = [(88, 0), (120, 0)]
  
      # Try all four combinations of valid/NaN vs valid/NaN.
      for start, end in itertools.product(start_points, end_points):
          line_string = sgeom.LineString([start, end])
          multi_line_string = projection.project_geometry(line_string)
          if start[0] == 130 and end[0] == 120:
              expected = 0
          else:
              expected = 1
          assert (
              len(multi_line_string.geoms) == expected
          ), f"Unexpected line when working from {start} to {end}"
  
imports: import itertools
  import time
  import numpy
  import pytest
  import shapely.geometry
  import cartopy.crs
label_desc: Use image node_id 1 for calling the TestLineString obj's underlying member method code with example usage: obj.test_out_of_bounds() without return types