code: def test_linestrings():
      arr = shapely.from_wkt(
          [
              "LINESTRING (30 10, 10 30, 40 40)",
              "LINESTRING (40 40, 30 30, 40 20, 30 10)",
              "LINESTRING EMPTY",
              "LINESTRING EMPTY",
              "LINESTRING (10 10, 20 20, 10 40)",
              "LINESTRING EMPTY",
          ]
      )
      typ, coords, offsets = shapely.to_ragged_array(arr)
      expected = np.array(
          [
              [30.0, 10.0],
              [10.0, 30.0],
              [40.0, 40.0],
              [40.0, 40.0],
              [30.0, 30.0],
              [40.0, 20.0],
              [30.0, 10.0],
              [10.0, 10.0],
              [20.0, 20.0],
              [10.0, 40.0],
          ]
      )
      expected_offsets = np.array([0, 3, 7, 7, 7, 10, 10])
      assert typ == shapely.GeometryType.LINESTRING
      assert_allclose(coords, expected)
      assert len(offsets) == 1
      assert_allclose(offsets[0], expected_offsets)
  
      result = shapely.from_ragged_array(typ, coords, offsets)
      assert_geometries_equal(result, arr)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  import shapely
  from shapely import MultiLineString, MultiPoint, MultiPolygon
  from shapely.testing import assert_geometries_equal
  from shapely.tests.common import empty_line_string, empty_line_string_z, geometry_collection, line_string, line_string_z, linear_ring, multi_line_string, multi_line_string_z, multi_point, multi_point_z, multi_polygon, multi_polygon_z, point, point_z, polygon, polygon_z
label_desc: Use image node_id 8 for calling a global function with example usage: test_linestrings() without return types