def METHOD_NAME(pair: str) -> Tuple[str, int]:
    """Construct mappings from feature/class names to numbers."""
    number_str, name = pair.split("=")
    number = int(number_str)
    return (name, number)