code: def __change_list(polygons, idx):
      if idx == -1:
          return polygons
      s_p = polygons[:idx]
      polygons = polygons[idx:]
      polygons.extend(s_p)
      polygons.append(polygons[0])  # 闭合圈
      return polygons
  
file_path: PaddleSeg/EISeg/eiseg/util/polygon.py
imports: from enum import Enum
  import cv2
  import numpy
  import math
  from .regularization import boundary_regularization
label_desc: Use image node_id 2 for calling a global function with example usage: __change_list(polygons, idx) and returns: polygons, polygons