def warning_message(message, category, filename, lineno, file=None, line=None):
    """ Define the format of a warning message.
    """
    return ">>> {0}:{1}: {2}\n    {3}\n".format(
        filename, lineno, category.__name__, message)