code: def cleanup_deployment(namespace: str):
      """Delete a k8s deployment and all pods in the same namespace."""
      config.load_kube_config()
      apps_api = client.AppsV1Api()
      core_api = client.CoreV1Api()
  
      apps_api.delete_namespaced_deployment(
          name="launch-agent-release-testing", namespace=namespace
      )
      pods = core_api.list_namespaced_pod(namespace=namespace).items
      for pod in pods:
          core_api.delete_namespaced_pod(
              name=pod.metadata.name, namespace=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 3 for calling a global function with example usage: cleanup_deployment(namespace) without return types