code: def has_z(geometry, **kwargs):
      """Returns True if a geometry has a Z coordinate.
  
      Note that for GEOS < 3.12 this function returns False if the (first) Z coordinate
      equals NaN.
  
      Parameters
      ----------
      geometry : Geometry or array_like
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      See also
      --------
      get_coordinate_dimension
  
      Examples
      --------
      >>> from shapely import Point
      >>> has_z(Point(0, 0))
      False
      >>> has_z(Point(0, 0, 0))
      True
      >>> has_z(Point())
      False
      """
      return lib.has_z(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 1 for calling a global function with example usage: has_z(geometry) and returns: lib