code: def test_include_z_default():
      # corner cases for inferring dimensionality
  
      # mixed 2D and 3D -> 3D
      _, coords, _ = shapely.to_ragged_array(
          [line_string, line_string_z]
      )
      assert coords.shape[1] == 3
  
      # only empties -> always 2D
      _, coords, _ = shapely.to_ragged_array([empty_line_string])
      assert coords.shape[1] == 2
      _, coords, _ = shapely.to_ragged_array([empty_line_string_z])
      assert coords.shape[1] == 2
      # empty collection -> GEOS indicates 2D
      _, coords, _ = shapely.to_ragged_array(
          shapely.from_wkt(["MULTIPOLYGON Z EMPTY"])
      )
      assert coords.shape[1] == 2
  
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 4 for calling a global function with example usage: test_include_z_default() without return types