code: def test_sweep_scheduler_entity_project_sweep_id(
      user, relay_server, sweep_config, monkeypatch
  ):
      _patch_wandb_run(monkeypatch)
      with relay_server():
          _entity = user
          _project = "test-project"
          api = internal.Api()
          # Entity, project, and sweep should be everything you need to create a scheduler
          sweep_id = wandb.sweep(
              sweep_config, entity=_entity, project=_project
          )
          _ = Scheduler(
              api, sweep_id=sweep_id, entity=_entity, project=_project
          )
          # Bogus sweep id should result in error
          with pytest.raises(SchedulerError):
              _ = Scheduler(
                  api,
                  sweep_id="foo-sweep-id",
                  entity=_entity,
                  project=_project,
              )
  
imports: import asyncio
  from typing import Dict
  from unittest.mock import Mock, patch
  import pytest
  import wandb
  from wandb.apis import internal, public
  from wandb.errors import CommError
  from wandb.sdk.launch.sweeps import SchedulerError, load_scheduler
  from wandb.sdk.launch.sweeps.scheduler import RunState, Scheduler, SchedulerState, SweepRun
  from wandb.sdk.launch.sweeps.scheduler_sweep import SweepScheduler
  from wandb.sdk.launch.sweeps.utils import construct_scheduler_args
  from .test_wandb_sweep import VALID_SWEEP_CONFIGS_MINIMAL
label_desc: Use image node_id 3 for calling a global function with example usage: test_sweep_scheduler_entity_project_sweep_id(user, relay_server, sweep_config, monkeypatch) without return types