Path 1: 1 calls (1.0)

NodeNG (1)

False (1)

1def is_inside_lambda(node: nodes.NodeNG) -> bool:
2    """Return whether the given node is inside a lambda."""
3    warnings.warn(
4        "utils.is_inside_lambda will be removed in favour of calling "
5        "utils.get_node_first_ancestor_of_type(x, nodes.Lambda) in pylint 3.0",
6        DeprecationWarning,
7        stacklevel=2,
8    )
9    return any(isinstance(parent, nodes.Lambda) for parent in node.node_ancestors())