code: def polys2shapely(polygons: Sequence[ArrayLike]) -> Sequence[Polygon]:
      """Convert a nested list of boundaries to a list of Polygons.
  
      Args:
          polygons (list): The point coordinates of the instance boundary.
  
      Returns:
          list: Converted shapely.Polygon.
      """
      return [poly2shapely(polygon) for polygon in polygons]
  
imports: import math
  import operator
  from functools import reduce
  from typing import List, Optional, Sequence, Tuple, Union
  import numpy
  import pyclipper
  import shapely
  from mmengine.utils import is_list_of
  from shapely.geometry import MultiPolygon, Polygon
  from mmocr.utils import bbox2poly, valid_boundary
  from mmocr.utils.check_argument import is_2dlist
  from mmocr.utils.typing_utils import ArrayLike
label_desc: Use image node_id 5 for calling a global function with example usage: polys2shapely(polygons) and returns: unknown