code: def bezier2poly(bezier, num_sample=20):
      bezier = bezier.reshape(2, 4, 2)
      curve_top = bezier2curve(bezier[0], num_sample)
      curve_bottom = bezier2curve(bezier[1], num_sample)
      return np.vstack((curve_top, curve_bottom)).flatten().tolist()
  
file_path: mmocr/projects/ABCNet/abcnet/utils/bezier_utils.py
imports: import numpy
  from scipy.special import comb
  from mmocr.utils.typing_utils import ArrayLike
label_desc: Use image node_id 7 for calling a global function with example usage: bezier2poly(bezier, num_sample) and returns: np