def into_keywords_format(keywords: dict) -> list:
    """Convert a dictionary of keyword, counter pairs into a list of dicts.

    Args:
        keywords: A dictionary that contains a counter for every keyword.

    Returns:
        The keywords in the format specified in wrapper/output_format.py.
    """
    keywords_list = []
    for word, count in keywords.items():
        keywords_list.append({
            "text": word,
            "value": count,
        })
    return keywords_list