code: def is_closed(geometry, **kwargs):
      """Returns True if a linestring's first and last points are equal.
  
      Parameters
      ----------
      geometry : Geometry or array_like
          This function will return False for non-linestrings.
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      See also
      --------
      is_ring : Checks additionally if the geometry is simple.
  
      Examples
      --------
      >>> from shapely import LineString, Point
      >>> is_closed(LineString([(0, 0), (1, 1)]))
      False
      >>> is_closed(LineString([(0, 0), (0, 1), (1, 1), (0, 0)]))
      True
      >>> is_closed(Point(0, 0))
      False
      """
      return lib.is_closed(geometry, **kwargs)
  
imports: import warnings
  import numpy
  from shapely import lib
  from shapely.decorators import multithreading_enabled, requires_geos
label_desc: Use image node_id 3 for calling a global function with example usage: is_closed(geometry) and returns: lib