code: def kubectl_delete(
      kind: str, name: str, namespace: str, wait: bool = True
  ):
      """Wrapper for kubectl delete.
  
      Args:
          kind: Kind of the K8s resource (e.g. pod)
          name: Name of the K8s resource.
          namespace: Namespace of the K8s resource.
      """
      wait_str = "true" if wait else "false"
      subprocess.check_output(
          [
              "kubectl",
              "-n",
              f"{namespace}",
              "delete",
              f"{kind}",
              f"{name}",
              f"--wait={wait_str}",
          ]
      )
  
imports: import atexit
  import contextlib
  import logging
  import pathlib
  import subprocess
  import tempfile
  import time
  from typing import Any, Dict, Generator, List, Optional
  import yaml
  import os
  import ray
  from ray.job_submission import JobStatus, JobSubmissionClient
label_desc: Use image node_id 20 for calling a global function with example usage: kubectl_delete(kind, name, namespace, wait) without return types