def METHOD_NAME() -> None:
    r = requests.get(
        "https://hg.mozilla.org/integration/autoland/json-pushes?version=2&tipsonly=1"
    )
    r.raise_for_status()
    revs = [
        push_obj["changesets"][0]
        for push_id, push_obj in r.json()["pushes"].items()
    ]
    logger.info("Retrieving known tasks from %s...", revs)
    # Store in a file the list of tasks in the latest autoland pushes.
    # We use more than one to protect ourselves from broken decision tasks.
    known_tasks = set()
    for rev in revs:
        r = requests.get(
            f"https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.autoland.revision.{rev}.taskgraph.decision/artifacts/public/target-tasks.json"
        )
        if r.ok:
            known_tasks.update(r.json())
    logger.info("Retrieved %d tasks", len(known_tasks))
    assert len(known_tasks) > 0
    with open("known_tasks", "w") as f:
        f.write("\n".join(known_tasks))