def METHOD_NAME():
    import os
    logging_kwargs = {"level": os.environ.get("LOG_LEVEL", logging.INFO)}
    if os.environ.get("LOG_FORMAT") == "plain":
        logging_kwargs["formatter"] = logging.Formatter
    if os.environ.get("SENTRY_DSN"):
        logging_kwargs["sentry_dsn"] = os.environ["SENTRY_DSN"]
    configure_logging(**logging_kwargs)
    auth0_secrets = dict(
        domain=os.environ["AUTH0_DOMAIN"],
        audience=os.environ["AUTH0_AUDIENCE"],
        client_id=os.environ["AUTH0_M2M_CLIENT_ID"],
        client_secret=os.environ["AUTH0_M2M_CLIENT_SECRET"],
    )
    loop = asyncio.get_event_loop()
    loop.run_until_complete(run_agent(loop, os.environ["BALROG_API_ROOT"], os.environ["TELEMETRY_API_ROOT"], auth0_secrets=auth0_secrets))