def METHOD_NAME(self) -> types.Expression:
    parsed = ast.METHOD_NAME(self.sanitize_formula())
    match parsed:
        case ast.Module(body=[ast.Expr(value=expr)]):
            return self._parse_expr(expr)
        case _:
            raise InvalidFormula("Invalid formula: Expected an expression at root")