code: def test_warning_line_clip_function(
      two_line_gdf, single_rectangle_gdf
  ):
      """Check that _clip_line_poly returns a deprecated warning."""
      with pytest.raises(
          Warning,
          match="_clip_line_poly is deprecated. Use the _clip_line_poly()",
      ):
          cl._clip_line_poly(two_line_gdf, single_rectangle_gdf)
  
file_path: earthpy/earthpy/tests/test_clip.py
imports: import pytest
  import numpy
  from shapely.geometry import Polygon, Point, LineString
  import geopandas
  import earthpy.clip
label_desc: Use image node_id 8 for calling a global function with example usage: test_warning_line_clip_function(two_line_gdf, single_rectangle_gdf) without return types