code: def length(geometry, **kwargs):
      """Computes the length of a (multi)linestring or polygon perimeter.
  
      Parameters
      ----------
      geometry : Geometry or array_like
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      Examples
      --------
      >>> from shapely import LineString, MultiLineString, Polygon
      >>> length(LineString([(0, 0), (0, 2), (3, 2)]))
      5.0
      >>> length(MultiLineString([
      ...     LineString([(0, 0), (1, 0)]),
      ...     LineString([(1, 0), (2, 0)])
      ... ]))
      2.0
      >>> length(Polygon([(0, 0), (0, 10), (10, 10), (10, 0), (0, 0)]))
      40.0
      >>> length(LineString())
      0.0
      >>> length(None)
      nan
      """
      return lib.length(geometry, **kwargs)
  
file_path: shapely/shapely/measurement.py
imports: import warnings
  import numpy
  from shapely import lib
  from shapely.decorators import multithreading_enabled
label_desc: Use image node_id 5 for calling a global function with example usage: length(geometry) and returns: lib