code: def test_equality_with_nan_z(left, right):
      # TODO: those are currently considered equal because z dimension is ignored
      if shapely.geos_version < (3, 12, 0):
          assert left == right
          assert not (left != right)
      else:
          # on GEOS main z dimension is not ignored -> NaNs cause inequality
          assert left != right
  
file_path: shapely/shapely/tests/geometry/test_equality.py
imports: import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, MultiLineString, Point, Polygon
  from shapely.tests.common import all_types, all_types_z, empty_point, ignore_invalid
label_desc: Use image node_id 4 for calling a global function with example usage: test_equality_with_nan_z(left, right) without return types