code: def kill_worker():
      pods = cli.list_namespaced_pod(
          "default",
          label_selector=f"rayCluster={RAY_CLUSTER_NAME},ray.io/node-type=worker",
      )
      alive_pods = [
          (p.status.start_time, p.metadata.name)
          for p in pods.items
          if p.status.phase == "Running"
      ]
      # sorted(alive_pods)
      # We kill the oldest nodes for now given the memory leak in serve.
      # to_be_killed = alive_pods[-1][1]
  
      to_be_killed = random.choice(alive_pods)[1]
      print(f"Killing worker {to_be_killed}")
      dump_pods_actors(pods.items[0].metadata.name)
      cli.delete_namespaced_pod(to_be_killed, "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 9 for calling a global function with example usage: kill_worker() without return types