check_user_info_response: Validate get_user response object, returning the object if valid, and stopping with an error message if invalid.
Description
Validate get_user response object, returning the object if valid, and stopping with an error message if invalid.
Usage
check_user_info_response(object)