code: def equals(a, b, **kwargs):
      """Returns True if A and B are spatially equal.
  
      If A is within B and B is within A, A and B are considered equal. The
      ordering of points can be different.
  
      Parameters
      ----------
      a, b : Geometry or array_like
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      See Also
      --------
      equals_exact : Check if A and B are structurally equal given a specified
          tolerance.
  
      Examples
      --------
      >>> from shapely import GeometryCollection, LineString, Polygon
      >>> line = LineString([(0, 0), (5, 5), (10, 10)])
      >>> equals(line, LineString([(0, 0), (10, 10)]))
      True
      >>> equals(Polygon(), GeometryCollection())
      True
      >>> equals(None, None)
      False
      """
      return lib.equals(a, b, **kwargs)
  
imports: import warnings
  import numpy
  from shapely import lib
  from shapely.decorators import multithreading_enabled, requires_geos
label_desc: Use image node_id 19 for calling a global function with example usage: equals(a, b) and returns: lib