code: def calc_cubic_parameters(p0, p1, p2, p3):
      c = (p1 - p0) * 3.0
      b = (p2 - p1) * 3.0 - c
      d = p0
      a = p3 - d - c - b
      return a, b, c, d
  
file_path: catboost/contrib/python/fonttools/fontTools/cu2qu/cu2qu.py
imports: import math
  from .errors import Error, ApproxNotFoundError
label_desc: Use image node_id 3 for calling a global function with example usage: calc_cubic_parameters(p0, p1, p2, p3) and returns: a,  b,  c,  d