def METHOD_NAME(self, node: nodes.FunctionDef) -> None:
    if self.graph is not None:
        # closure
        pathnode = self._append_node(node)
        self.tail = pathnode
        self.dispatch_list(node.body)
        bottom = f"{self._bottom_counter}"
        self._bottom_counter += 1
        self.graph.connect(self.tail, bottom)
        self.graph.connect(node, bottom)
        self.tail = bottom
    else:
        self.graph = PathGraph(node)
        self.tail = node
        self.dispatch_list(node.body)
        self.graphs[f"{self.classname}{node.name}"] = self.graph
        self.reset()