def METHOD_NAME(s: str) -> list[str]:
    """
    Split s into lines, preserving the number of lines and
    the endings of all lines, including the last line.
    This function is not the same as s.splitlines(True).
    """
    return s.splitlines(True) if s else []