def user_activity_summary_table(user_summary: Dict[(str, Dict[(str, Any)])]) -> str:
    rows = []
    for (k, v) in user_summary.items():
        if (k == 'name'):
            continue
        client = k
        count = v['count']
        last_visit = v['last_visit']
        row = [format_date_for_activity_reports(last_visit), client, count]
        rows.append(row)
    rows = sorted(rows, key=(lambda r: r[0]), reverse=True)
    cols = ['last_visit', 'client', 'count']
    title = 'User activity'
    return make_table(title, cols, rows)
def user_activity_summary_table(user_summary: Dict[(str, Dict[(str, Any)])]) -> str:
    rows = []
    for (k, v) in user_summary.items():
        if (k == 'name'):
            continue
        client = k
        count = v['count']
        last_visit = v['last_visit']
        row = [format_date_for_activity_reports(last_visit), client, count]
        rows.append(row)
    rows = sorted(rows, key=(lambda r: r[0]), reverse=True)
    cols = ['last_visit', 'client', 'count']
    title = 'User activity'
    return make_table(title, cols, rows)