code: def test_line_inside():
      """Line inside"""
      geom1 = load_wkt("LINESTRING (15 15, 16 15)")
      geom2 = clip_by_rect(geom1, 10, 10, 20, 20)
      assert (
          dump_wkt(geom2, rounding_precision=0)
          == "LINESTRING (15 15, 16 15)"
      )
  
file_path: shapely/shapely/tests/legacy/test_clip_by_rect.py
imports: import pytest
  from shapely.ops import clip_by_rect
  from shapely.wkt import dumps
  from shapely.wkt import loads
label_desc: Use image node_id 5 for calling a global function with example usage: test_line_inside() without return types