code: def delete_cluster(cluster_config: str):
      """Delete a cortex cluster from a cluster config"""
      with open(cluster_config) as f:
          config = yaml.safe_load(f)
  
      p = subprocess.run(
          [
              "cortex",
              "cluster",
              "down",
              "-y",
              "--config",
              cluster_config,
          ],
          stdout=sys.stdout,
          stderr=sys.stderr,
      )
  
      if p.returncode != 0:
          raise ClusterDeletionException(
              f"failed to delete cluster with config: {cluster_config}"
          )
  
imports: import subprocess
  import sys
  import yaml
  from e2e.exceptions import ClusterCreationException, ClusterDeletionException
label_desc: Use image node_id 2 for calling a global function with example usage: delete_cluster(cluster_config) without return types