code: def is_valid(geometry, **kwargs):
      """Returns True if a geometry is well formed.
  
      Parameters
      ----------
      geometry : Geometry or array_like
          Any geometry type is accepted. Returns False for missing values.
      **kwargs
          See :ref:`NumPy ufunc docs <ufuncs.kwargs>` for other keyword arguments.
  
      See also
      --------
      is_valid_reason : Returns the reason in case of invalid.
  
      Examples
      --------
      >>> from shapely import GeometryCollection, LineString, Polygon
      >>> is_valid(LineString([(0, 0), (1, 1)]))
      True
      >>> is_valid(Polygon([(0, 0), (1, 1), (1, 2), (1, 1), (0, 0)]))
      False
      >>> is_valid(GeometryCollection())
      True
      >>> is_valid(None)
      False
      """
      # GEOS is valid will emit warnings for invalid geometries. Suppress them.
      with warnings.catch_warnings():
          warnings.simplefilter("ignore")
          result = lib.is_valid(geometry, **kwargs)
      return result
  
imports: import warnings
  import numpy
  from shapely import lib
  from shapely.decorators import multithreading_enabled, requires_geos
label_desc: Use image node_id 11 for calling a global function with example usage: is_valid(geometry) and returns: result