def is_multiline(node):
    """
    Checks if node is a multiline string
    """
    if isinstance(node, list):
        return any(is_multiline(n) for n in node)

    for leaf in node.leaves():
        if "\n" in leaf.prefix:
            return True
    return False