decorator\'s enclosed context as function