async def METHOD_NAME():
    def env(ctr: dagger.Container):
        return ctr.with_env_variable("FOO", "bar")
    def secret(token: str):
        def _secret(ctr: dagger.Container):
            return ctr.with_secret_variable("TOKEN", dagger.set_secret("TOKEN", token))
        return _secret
    await (
        dagger.container()
        .from_("alpine:3.16.2")
        .with_(env)
        .with_(secret("baz"))
        .with_exec(["sh", "-c", "test $FOO = bar && test $TOKEN = baz"])
        .sync()
    )