def get_node_last_lineno(node: astroid.node_classes.NodeNG) -> int:
<EOL>if getattr(node, "<STR_LIT>", False):<EOL><INDENT>return get_node_last_lineno(node.finalbody[-<NUM_LIT:1>])<EOL><DEDENT>if getattr(node, "<STR_LIT>", False):<EOL><INDENT>return get_node_last_lineno(node.orelse[-<NUM_LIT:1>])<EOL><DEDENT>if getattr(node, "<STR_LIT>", False):<EOL><INDENT>return get_node_last_lineno(node.handlers[-<NUM_LIT:1>])<EOL><DEDENT>if getattr(node, "<STR_LIT:body>", False):<EOL><INDENT>return get_node_last_lineno(node.body[-<NUM_LIT:1>])<EOL><DEDENT>return node.lineno<EOL>
Get the last lineno of the given node. For a simple statement this will just be node.lineno,
but for a node that has child statements (e.g. a method) this will be the lineno of the last
child statement recursively.