def canonical_switch_pattern_print(s):
    """Canonically prints a parsed switch pattern.

    Parameters
    ----------
    s : Dict[str, int]
        A parsed switch pattern.
    
    Returns
    -------
    str
        Canonical print out.
    """

    txt = ""
    for e in sorted(s):
        txt += "%s %d\n" % (e, s[e])

    return txt[:-1]