I am using the following code to kill the container in a pod
from kubernetes.stream import stream . . . . . . # custom functio