def METHOD_NAME(self):
    func_node = astroid.extract_node('''
    def test(scale, mean): 
        """get news.
        Args:
            scale (int): scale is the number.
        """
        mean=scale
        mean=scale
        mean=scale
        mean=scale
        mean=scale
        mean=scale
        mean=scale
    ''')
    self.checker.visit_functiondef(func_node)
    got = self.linter.release_messages()
    assert len(got) == 1
    assert 'W9003' == got[0][0]