code: def return_an_error(*args):
      '''List of errors
      Put all errors into a list of errors
      ref: http://jsonapi.org/format/#errors
      Args:
          *args: A tuple contain errors
      Returns:
          A dictionary contains a list of errors
      '''
      list_errors = []
      list_errors.extend(list(args))
  
      errors = { 'errors': list_errors }
      return errorf return_an_error(*args):
      '''List of errors
      Put all errors into a list of errors
      ref: http://jsonapi.org/format/#errors
      Args:
          *args: A tuple contain errors
      Returns:
          A dictionary contains a list of errors
      '''
      list_errors = []
      list_errors.extend(list(args))
  
      errors = { 'errors': list_errors }
      return errors
docs: List of errors
      Put all errors into a list of errors
      ref: http://jsonapi.org/format/#errors
      Args:
          *args: A tuple contain errors
      Returns:
          A dictionary contains a list of errors