def METHOD_NAME(matA, matB, nameA, nameB, error, with_msg=True):
  is_pass = True
  mat = matA - matB
  mat = mat / np.sqrt(matA**2 + error)
  title = "{:25} VS {:25} : ".format(nameA, nameB)
  res = {}
  string = ''
  res['max'] = mat.max()
  res['min'] = mat.min()
  for item in res:
    string += item + ':' + str(res[item]) + ' '
    if abs(res[item]) > error:
      msg = "{}({}) out of tolerance({})!".format(item, res[item], error)
      is_pass = False
      break
  if with_msg:
    if is_pass:
      msg = string + '(tolerance {})'.format(error)
      print("{}{}{:60}{}".format('**', '[PASS] ' + title, msg, '**'))
    else:
      print("{}{}{:60}{}".format('**', '[FAIL] ' + title, msg, '**'))
  return is_pass