code: def test_to_crs_dimension_mixed():
      s = GeoSeries(
          [Point(1, 2), LineString([(1, 2, 3), (4, 5, 6)])], crs=2056
      )
      result = s.to_crs(epsg=4326)
      assert not result[0].is_empty
      assert result.has_z.tolist() == [False, True]
      roundtrip = result.to_crs(epsg=2056)
      # TODO replace with assert_geoseries_equal once we expose tolerance keyword
      # assert_geoseries_equal(roundtrip, s, check_less_precise=True)
      for a, b in zip(roundtrip, s):
          np.testing.assert_allclose(
              a.coords[:], b.coords[:], atol=0.01
          )
  
imports: import random
  import warnings
  import numpy
  import pandas
  import pyproj
  import pytest
  from shapely.geometry import Point, Polygon, LineString
  from geopandas import GeoSeries, GeoDataFrame, points_from_xy, read_file
  from geopandas.array import from_shapely, from_wkb, from_wkt, GeometryArray
  from geopandas.testing import assert_geodataframe_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_to_crs_dimension_mixed() without return types