code: def boundary(geometry, **kwargs):
      """Returns the topological boundary of a geometry.
  
      Parameters
      ----------
      geometry : Geometry or array_like
          This function will return None for geometrycollections.
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      Examples
      --------
      >>> from shapely import GeometryCollection, LinearRing, LineString, \
  MultiLineString, MultiPoint, Point, Polygon
      >>> boundary(Point(0, 0))
      <GEOMETRYCOLLECTION EMPTY>
      >>> boundary(LineString([(0, 0), (1, 1), (1, 2)]))
      <MULTIPOINT ((0 0), (1 2))>
      >>> boundary(LinearRing([(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)]))
      <MULTIPOINT EMPTY>
      >>> boundary(Polygon([(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)]))
      <LINESTRING (0 0, 1 0, 1 1, 0 1, 0 0)>
      >>> boundary(MultiPoint([(0, 0), (1, 2)]))
      <GEOMETRYCOLLECTION EMPTY>
      >>> boundary(MultiLineString([[(0, 0), (1, 1)], [(0, 1), (1, 0)]]))
      <MULTIPOINT ((0 0), (0 1), (1 0), (1 1))>
      >>> boundary(GeometryCollection([Point(0, 0)])) is None
      True
      """
      return lib.boundary(geometry, **kwargs)
  
imports: import numpy
  from shapely import lib
  from shapely._enum import ParamEnum
  from shapely.algorithms._oriented_envelope import _oriented_envelope_min_area
  from shapely.decorators import multithreading_enabled, requires_geos
label_desc: Use image node_id 1 for calling a global function with example usage: boundary(geometry) and returns: lib