code: def is_pod_running(self, pod):
          
          # FIXME: Validate if this is really the best way
          is_running = (
              pod is not None and
              pod.status.phase == 'Running' and
              pod.status.pod_ip is not None and
              pod.metadata.deletion_timestamp is None and
              all([cs.ready for cs in pod.status.container_statuses])
          )
          return is_running
docs: Check if the given pod is running
  
          pod must be a dictionary representing a Pod kubernetes API object.