code: def bezier2curve(bezier: np.ndarray, num_sample: int = 10):
      bezier = np.asarray(bezier)
      t = np.linspace(0, 1, num_sample)
      return np.array(bezier_coefficients(3, 4, t)).dot(bezier)
  
file_path: mmocr/mmocr/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 5 for calling a global function with example usage: bezier2curve(bezier, num_sample) and returns: np