def METHOD_NAME(self):
    func_node = astroid.extract_node('''
    def test(): 
        """get 
        news.
        """
        if True:
            return 5
        return 5
    ''')
    self.checker.visit_functiondef(func_node)
    got = self.linter.release_messages()
    assert len(got) == 1
    assert 'W9001' == got[0][0]