code: def clean_agent():
      LaunchAgent._instance = None
      yield
      LaunchAgent._instance = None
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_agent/test_agent.py
imports: import asyncio
  import threading
  from unittest.mock import MagicMock
  import pytest
  from wandb.errors import CommError
  from wandb.sdk.launch.agent.agent import JobAndRunStatusTracker, LaunchAgent
  from wandb.sdk.launch.errors import LaunchDockerError, LaunchError
label_desc: Use image node_id 1 for calling a global function with example usage: clean_agent() without return types