fn is_nested_function(function: &Fn) -> bool
Returns whether the given function is nested within the body of another function.