def METHOD_NAME(user, image_uri, launch_config):
    queue = "test"
    api = InternalApi()
    public_api = Api()
    public_api.create_project(LAUNCH_DEFAULT_PROJECT, user)
    # make launch project queue
    res = api.create_run_queue(
        entity=user,
        project=LAUNCH_DEFAULT_PROJECT,
        queue_name=queue,
        access="USER",
    )
    if res.get("success") is not True:
        raise Exception("create queue" + str(res))
    sweep_config = {
        "method": "grid",
        "image_uri": image_uri,
        "parameters": {"parameter1": {"values": [1, 2, 3]}},
    }
    sweep_config.update(**launch_config)
    with open("sweep-config.yaml", "w") as f:
        json.dump(sweep_config, f)
    out = subprocess.check_output(
        [
            "wandb",
            "launch-sweep",
            "sweep-config.yaml",
            "-e",
            user,
            "-p",
            LAUNCH_DEFAULT_PROJECT,
            "-q",
            queue,
        ],
        stderr=subprocess.STDOUT,
    )
    assert "Scheduler added to launch queue (test)" in out.decode("utf-8")