from typing import Tuple
from typing import List


def split_einsum_formula(formula: str) -> Tuple[List[str], str]:
  """Splits an einsum formula string into its component axis names."""
  input_formula, output_formula = formula.split('->')
  return input_formula.split(','), output_formula