code: def orient(geom, sign=1.0):
      """A properly oriented copy of the given geometry.
  
      The signed area of the result will have the given sign. A sign of
      1.0 means that the coordinates of the product's exterior rings will
      be oriented counter-clockwise.
  
      Parameters
      ----------
      geom : Geometry
          The original geometry. May be a Polygon, MultiPolygon, or
          GeometryCollection.
      sign : float, optional.
          The sign of the result's signed area.
  
      Returns
      -------
      Geometry
  
      """
      if isinstance(geom, BaseMultipartGeometry):
          return geom.__class__(
              list(
                  map(
                      lambda geom: orient(geom, sign),
                      geom.geoms,
                  )
              )
          )
      if isinstance(geom, (Polygon,)):
          return orient_(geom, sign)
      return geom
  
imports: from warnings import warn
  import shapely
  from shapely.algorithms.polylabel import polylabel
  from shapely.errors import GeometryTypeError, ShapelyDeprecationWarning
  from shapely.geometry import GeometryCollection, LineString, MultiLineString, MultiPoint, Point, Polygon, shape
  from shapely.geometry.base import BaseGeometry, BaseMultipartGeometry
  from shapely.geometry.polygon import orient
  from shapely.prepared import prep
label_desc: Use image node_id 10 for calling a global function with example usage: orient(geom, sign) and returns: geom, geom, orient_