code: def test_read_only_arrays(geom):
      # https://github.com/shapely/shapely/pull/1744
      typ, coords, offsets = shapely.to_ragged_array([geom, geom])
      coords.flags.writeable = False
      for arr in offsets:
          arr.flags.writeable = False
      result = shapely.from_ragged_array(typ, coords, offsets)
      assert_geometries_equal(result, [geom, geom])
  
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 5 for calling a global function with example usage: test_read_only_arrays(geom) without return types