def has_errors(result):
  """This function checks if a GqlResponse has any errors.

  Args:
      result (GqlResponse):  [data, errors]

  Returns:
      (boolean): Returns `True` if a transaction has at least one error.
  """
  _, errors = result
  return len(errors) > 0