code: def _equals_exact_with_ndim(x, y, tolerance):
      dimension_equals = shapely.get_coordinate_dimension(
          x
      ) == shapely.get_coordinate_dimension(y)
      with np.errstate(invalid="ignore"):
          # Suppress 'invalid value encountered in equals_exact' with nan coordinates
          geometry_equals = shapely.equals_exact(
              x, y, tolerance=tolerance
          )
      return dimension_equals & geometry_equals
  
file_path: shapely/shapely/testing.py
imports: from functools import partial
  import numpy
  import shapely
label_desc: Use image node_id 1 for calling a global function with example usage: _equals_exact_with_ndim(x, y, tolerance) and returns: unknown