def METHOD_NAME(n: int, name: str, suffix: Optional[str] = None) -> str:
    """Canonical name of frequency.
    >>> _canonical_freqstr(1, "X")
    'X'
    >>> _canonical_freqstr(3, "X")
    '3X'
    >>> _canonical_freqstr(3, "X", "Y")
    '3X-Y'
    This allows us to easily string compare frequencies
    (solves ``"1X" != "X"``).
    """
    if suffix:
        name = f"{name}-{suffix}"
    if n == 1:
        return name
    return f"{n}{name}"