Path 1: 15 calls (1.0)
→ node Lambda (10) FunctionDef (5)
↩ return False (13) True (2)
1def is_being_called(node: nodes.NodeNG) -> bool: 2 """Return True if node is the function being called in a Call node.""" 3 return isinstance(node.parent, nodes.Call) and node.parent.func is node