code: def init_agent_in_launch_cluster(
      namespace: str, api_key: str, agent_image: Optional[str]
  ):
      """Deploy the agent in provided cluster namespace."""
      create_config_files(api_key, agent_image)
      run_cmd(
          "kubectl apply -f tests/release_tests/test_launch/launch-config.yml"
      )
      run_cmd(
          "kubectl apply -f tests/release_tests/test_launch/launch-agent.yml"
      )
      setup_cleanup_on_exit(namespace)
  
file_path: wandb/tests/release_tests/test_launch/utils.py
imports: import signal
  import subprocess
  import sys
  from time import sleep
  from typing import Optional
  import wandb
  import yaml
  from kubernetes import client, config, watch
  from wandb.apis.public import Api
label_desc: Use image node_id 10 for calling a global function with example usage: init_agent_in_launch_cluster(namespace, api_key, agent_image) without return types