def METHOD_NAME(
    event: Dict,
    metrics: MetricsLogger,
    sqs_client: Optional[botocore.client.BaseClient] = None,
    dynamo_client: Optional[botocore.client.BaseClient] = None,
    now: Optional[datetime.datetime] = None,
):
    sqs_client = sqs_client or boto3.client("sqs")
    dynamo_client = dynamo_client or boto3.client("dynamodb")
    now = now or datetime.datetime.utcnow()
    path = event["path"].split("/")[1:]
    method = event["httpMethod"]
    if path == ["pageload"] and method == "POST":
        return handle_pageload(event, metrics, now, os.environ["SQS_STATS_QUEUE"], sqs_client)
    if len(path) == 2 and path[0] == "compiler-build" and method == "GET":
        return handle_compiler_stats(path[1], os.environ["COMPILER_BUILD_TABLE"], dynamo_client)
    return dict(
        statusCode=404,
        statusDescription="404 Not Found",
        isBase64Encoded=False,
        headers=STATIC_HEADERS,
        body="Not found",
    )