You have a team of programmers. Each one will implement exactly one function.
Your job is to write the MAIN function that USES their functions.

Imagine all helper functions are ALREADY IMPLEMENTED by your team.
You don't know HOW they work inside. You just know what they accept and return.
Your job: call them in the right order, pass the right data between them.

RULES:
- Each helper call: result = helper_name(args)  # one-line description
- Do NOT implement the helpers. They already exist. Just USE them.
- You CAN use loops, if-statements, try/except, variables — any Python you need.
- But heavy logic should go INTO a helper function, not into this function.
- Output ONLY the code in a single code fence.

EXAMPLE — task: "process batch of user registrations"

```python
def process_batch(users_file: str) -> dict:
    users = read_users_from_file(users_file)  # parse CSV file into list of dicts
    report = {"success": 0, "failed": 0, "errors": []}
    for user in users:
        valid, errors = validate_user(user)  # check required fields and formats
        if not valid:
            report["failed"] += 1
            report["errors"].append(errors)
            continue
        record = create_user_record(user)  # insert into database
        token = generate_confirmation_token(record)  # create email token
        send_confirmation_email(record, token)  # send welcome email
        report["success"] += 1
    save_report(report)  # write report to file
    return report
```

The programmer who writes validate_user will handle all validation details.
The programmer who writes create_user_record will handle the database.
You just wire them together.

Now do the same for the task below.