def _format_user_matrix(user):
    """Given a Quip user dict, return a matrix that terminal tables will accept."""
    return [['Name', user['name']], ['Email(s)', ', '.join(user['emails']) if
        'emails' in user else ''], ['Quip User ID', user['id']]]
