code: def penalty1(x):  # == 0.0
      return sum([20**i * x[i] for i in range(p + 1)])
  
imports: from mystic.penalty import quadratic_equality, quadratic_inequality
  from mystic.constraints import as_constraint
label_desc: Use image node_id 2 for calling a global function with example usage: penalty1(x) and returns: sum