from typing import Tuple
from typing import List


def parse_einsum_formula(formula: str) -> Tuple[List[str], str]:
    """
    Parse an einsum formula into input tensor subscripts and output tensor
    subscript.

    Note that we don't support ellipsis.

    :param formula: The einsum formula to parse.
    :return:
    """
    operands, output_subscript = formula.split('->')
    input_subscripts = [x.strip() for x in operands.split(',')]
    return input_subscripts, output_subscript