code: def kill_head():
      pods = cli.list_namespaced_pod(
          "default",
          label_selector=f"rayCluster={RAY_CLUSTER_NAME},ray.io/node-type=head",
      )
      if pods.items[0].status.phase == "Running":
          print(f"Killing header {pods.items[0].metadata.name}")
          dump_pods_actors(pods.items[0].metadata.name)
          cli.delete_namespaced_pod(
              pods.items[0].metadata.name, "default"
          )
  
imports: import enum
  import json
  import subprocess
  from kubernetes import client, config, watch
  import requests
  import random
  import uuid
  import pathlib
  import time
  import ray
  import os
label_desc: Use image node_id 8 for calling a global function with example usage: kill_head() without return types