code: def calcCubicPoints(a, b, c, d):
      ax, ay = a
      bx, by = b
      cx, cy = c
      dx, dy = d
      x1 = dx
      y1 = dy
      x2 = (cx / 3.0) + dx
      y2 = (cy / 3.0) + dy
      x3 = (bx + cx) / 3.0 + x2
      y3 = (by + cy) / 3.0 + y2
      x4 = ax + dx + cx + bx
      y4 = ay + dy + cy + by
      return (x1, y1), (x2, y2), (x3, y3), (x4, y4)
  
imports: from fontTools.misc.arrayTools import calcBounds, sectRect, rectArea
  from fontTools.misc.transform import Identity
  import math
  from collections import namedtuple
  from math import sqrt, acos, cos, pi
label_desc: Use image node_id 31 for calling a global function with example usage: calcCubicPoints(a, b, c, d) and returns: x1,  y1,  x2,  y2,  x3,  y3,  x4,  y4