One helper method `is_mini_lambda_expr` would return `True` if the provided argument is a mini lambda expression. Another helper method `as_function` would return `f.as_function()` if `f` is a mini lambda expression, or `f` otherwise.