def _check_return_at_the_end(self, node):
if len(self._return_nodes[node.name]) > <NUM_LIT:1>:<EOL><INDENT>return<EOL><DEDENT>if len(node.body) <= <NUM_LIT:1>:<EOL><INDENT>return<EOL><DEDENT>last = node.body[-<NUM_LIT:1>]<EOL>if isinstance(last, astroid.Return):<EOL><INDENT>if last.value is None:<EOL><INDENT>self.add_message("<STR_LIT>", node=node)<EOL><DEDENT>elif isinstance(last.value, astroid.Const) and (last.value.value is None):<EOL><INDENT>self.add_message("<STR_LIT>", node=node)<EOL><DEDENT><DEDENT>
Check for presence of a *single* return statement at the end of a
        function. "return" or "return None" are useless because None is the
        default return type if they are missing.

        NOTE: produces a message only if there is a single return statement
        in the function body. Otherwise _check_consistent_returns() is called!
        Per its implementation and PEP8 we can have a "return None" at the end
        of the function body if there are other return statements before that!