def visit_FunctionDef(self, node):

        self.context['function'] = node
        qualname = self.namespace + '.' + b_utils.get_func_name(node)
        name = qualname.split('.')[-1]

        self.context['qualname'] = qualname
        self.context['name'] = name

        # For all child nodes and any tests run, add this function name to
        # current namespace
        self.namespace = b_utils.namespace_path_join(self.namespace, name)
        self.update_scores(self.tester.run_tests(self.context, 'FunctionDef'))
Visitor for AST FunctionDef nodes
dataset/ETHPy150Open openstack/bandit/bandit/core/node_visitor.py/BanditNodeVisitor.visit_FunctionDef