def fetch_profile(client, user_id):
return {"id": user_id}
def build_summary(profile):
return str(profile["id"])
def render_report(user_ids, client):
report = []
for user_id in user_ids:
profile = fetch_profile(client, user_id)
report.append(build_summary(profile))
return report