def METHOD_NAME(v: Union[int, str]) -> str:
    """From any value return the season code which is a three letter string representing the season, or 'ALL' for all time."""
    sid = season_id(v)
    if sid in ('all', 0, None):
        return 'ALL'
    assert sid is not None  # For typechecking which can't understand the above if statement.
    return SEASONS[int(sid) - 1]