def _user_profile(user_profile):
 return {'profile': {'image': user_profile['profile_image']}}

def _user_profile ( user_profile ) : return { 'profile' : { 'image' : user_profile [ 'profile_image' ] } }
returns the user profile object .