code: def _find_error(vals):
      """Find the errors in the energy values.
  
      This function finds the errors in the enthalpys.
  
      Parameters
      ----------
      vals : list of lists of floats
  
      Returns
      -------
      err_vals : list of lists containing the errors.
      """
  
      err_vals = []
      for en in vals:
          c = en[2]
          conc = [float(i) / sum(c) for i in c]
  
          err = abs(en[0] - en[1])
  
          err_vals.append([conc, err])
  
      return err_vals
  
imports: import ternary
  import matplotlib.pyplot
label_desc: Use image node_id 3 for calling a global function with example usage: _find_error(vals) and returns: err_vals