code: def get_coordinate_dimension(geometry, **kwargs):
      """Returns the dimensionality of the coordinates in a geometry (2 or 3).
  
      Returns -1 for missing geometries (``None`` values).
  
      Note that with GEOS < 3.12, if the first Z coordinate equals ``nan``, this function
      will return ``2``.
  
      Parameters
      ----------
      geometry : Geometry or array_like
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      Examples
      --------
      >>> from shapely import Point
      >>> get_coordinate_dimension(Point(0, 0))
      2
      >>> get_coordinate_dimension(Point(0, 0, 1))
      3
      >>> get_coordinate_dimension(None)
      -1
      """
      return lib.get_coordinate_dimension(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 3 for calling a global function with example usage: get_coordinate_dimension(geometry) and returns: lib