def is_escaped_newline(line):
    """ Checks if the final newline in a string is escaped
    Parameters
    ----------
    line : string
        String that ends with a newline

    Returns
    -------
    bool
        True if the last newline in the string is escaped

    Examples
    --------
    >>> is_escaped_newline("Line\n")
    False
    >>> is_escaped_newline("Line\\\n")
    True
    >>> is_escaped_newline("Line\\\\n")
    False
    >>> is_escaped_newline("Line")
    False
    """
    if line[-1] != '\n':
        return False
    line = line[:-1]
    cnt = 0
    for c in reversed(line):
        if c == '\\':
            cnt += 1
        else:
            break
    # An odd number of backslashes means the newline is escaped
    return cnt % 2 == 1