code: def test_linestring_array_coercion():
      # don't convert to array of coordinates, keep objects
      line = LineString([(1.0, 2.0), (3.0, 4.0)])
      arr = np.array(line)
      assert arr.ndim == 0
      assert arr.size == 1
      assert arr.dtype == np.dtype("object")
      assert arr.item() == line
  
imports: import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, Point
  from shapely.coords import CoordinateSequence
label_desc: Use image node_id 16 for calling a global function with example usage: test_linestring_array_coercion() without return types