def check_output(file_path: str) -> bool:
    """
    This function checks an output file, either from geomeTRIC or
    from Psi4, for a successful completion keyword. Returns
    True if the calculation finished successfully, otherwise
    False.
    """
    with open(file_path, "r") as read_file:
        text = read_file.read()
    checks = ["Converged! =D", "Psi4 exiting successfully"]
    return any([check in text for check in checks])