code: def test_sweep_scheduler_sweep_id_no_job(user, monkeypatch):
      _patch_wandb_run(monkeypatch)
      sweep_config = VALID_SWEEP_CONFIGS_MINIMAL[0]
  
      def mock_run_complete_scheduler(self, *args, **kwargs):
          self.state = SchedulerState.COMPLETED
  
      monkeypatch.setattr(
          "wandb.sdk.launch.sweeps.scheduler.Scheduler.run",
          mock_run_complete_scheduler,
      )
      _entity = user
      _project = "test-project"
      api = internal.Api()
      # Entity, project, and sweep
      sweep_id = wandb.sweep(
          sweep_config, entity=_entity, project=_project
      )
      # No job
      scheduler = SweepScheduler(
          api, sweep_id=sweep_id, entity=_entity, project=_project
      )
      scheduler.start()  # should raise no job found
      assert scheduler.state == SchedulerState.FAILED
  
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 6 for calling a global function with example usage: test_sweep_scheduler_sweep_id_no_job(user, monkeypatch) without return types