code: def polygon_from_str(polygon_points):
      """
      Create a shapely polygon object from gt or dt line.
      """
      polygon_points = np.array(polygon_points).reshape(4, 2)
      polygon = Polygon(polygon_points).convex_hull
      return polygon
  
file_path: PaddleOCR/tools/end2end/eval_end2end.py
imports: import os
  import re
  import sys
  import shapely
  from shapely.geometry import Polygon
  import numpy
  from collections import defaultdict
  import operator
  import editdistance
label_desc: Use image node_id 2 for calling a global function with example usage: polygon_from_str(polygon_points) and returns: polygon