code: def get_precision(geometry, **kwargs):
      """Get the precision of a geometry.
  
      If a precision has not been previously set, it will be 0 (double
      precision). Otherwise, it will return the precision grid size that was
      set on a geometry.
  
      Returns NaN for not-a-geometry values.
  
      Parameters
      ----------
      geometry : Geometry or array_like
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      See also
      --------
      set_precision
  
      Examples
      --------
      >>> from shapely import Point
      >>> point = Point(1, 1)
      >>> get_precision(point)
      0.0
      >>> geometry = set_precision(point, 1.0)
      >>> get_precision(geometry)
      1.0
      >>> get_precision(None)
      nan
      """
      return lib.get_precision(geometry, **kwargs)
  
imports: import warnings
  from enum import IntEnum
  import numpy
  from shapely import _geometry_helpers, geos_version, lib
  from shapely._enum import ParamEnum
  from shapely.decorators import multithreading_enabled
label_desc: Use image node_id 19 for calling a global function with example usage: get_precision(geometry) and returns: lib