code: def penalty(
      x,
  ):  # NOTE: not built as a 'penalty function' (loses functionality)
      sum = 0.0
      for i in range(1, 10):
          for j in range(1, 10):
              for k in range(1, 10):
                  p = lambda v: (
                      (v[0] - i) ** 2
                      + (v[1] - j) ** 2
                      + (v[2] - k) ** 2
                      - 48.0
                  )
                  p = with_penalty(quadratic_inequality, k=1e2)(p)
                  sum += p(x)
      return sum
  
imports: from mystic.symbolic import generate_constraint, generate_solvers, solve
  from mystic.symbolic import generate_penalty, generate_conditions
  from mystic.constraints import as_constraint
  from mystic.penalty import quadratic_inequality
  from mystic.constraints import with_penalty
label_desc: Use image node_id 2 for calling a global function with example usage: penalty(x) and returns: sum