from typing import Sequence


def reconstitute_einsum_formula(input_formulas: Sequence[str],
                                output_formula: str) -> str:
  """Joins einsum input formulas and output formula into a complete formula."""
  joined_input_formula = ','.join(input_formulas)
  return f'{joined_input_formula}->{output_formula}'