def is_terminated_with(input, terminator):
    """
    Helper to check if a given input has ends with the given terminator

    Args:
        input(str): the input to check
        terminator(str): some termination sequence

    Returns:
        bool : whether the input ends with the terminator
    """
    if len(input) < len(terminator):
        return False
    else:
        return input[-len(terminator) :] == terminator