code: def sort_vertex8(points):
      # TODO Add typehints & docstring & test
      """Sort vertex with 8 points [x1 y1 x2 y2 x3 y3 x4 y4]"""
      assert len(points) == 8
      vertices = _sort_vertex(
          np.array(points, dtype=np.float32).reshape(-1, 2)
      )
      sorted_box = list(vertices.flatten())
      return sorted_box
  
file_path: mmocr/mmocr/utils/bbox_utils.py
imports: from typing import List, Tuple
  import numpy
  from shapely.geometry import LineString, Point
  from mmocr.utils.check_argument import is_type_list
  from mmocr.utils.point_utils import point_distance, points_center
  from mmocr.utils.typing_utils import ArrayLike
label_desc: Use image node_id 9 for calling a global function with example usage: sort_vertex8(points) and returns: sorted_box