code: def get_return_status(self):
      # This part will get executed if the pod is one of the following phases: not ready, failed or terminated.
      # Check if the pod has errored out, else just try again.
      # Get the pod
      try:
          pod = self.corev1_api.read_namespaced_pod(
              self.test_name, self.namespace
          )
      except client.rest.ApiException as e:
          print("Got exception: {} while reading pod".format(e))
          return 1
  
      if not hasattr(pod, "status") or not pod.status:
          return 0
      if (
          not hasattr(pod.status, "container_statuses")
          or not pod.status.container_statuses
      ):
          return 0
  
      for container_status in pod.status.container_statuses:
          if container_status.state.waiting is not None:
              if (
                  container_status.state.waiting.reason == "Error"
                  or container_status.state.waiting.reason
                  == "CrashLoopBackOff"
                  or container_status.state.waiting.reason
                  == "ImagePullBackOff"
                  or container_status.state.waiting.reason
                  == "ErrImagePull"
              ):
                  return 1
          if container_status.state.terminated is not None:
              return container_status.state.terminated.exit_code
  
file_path: coach/rl_coach/tests/test_eks.py
imports: import argparse
  import pytest
  import time
  from kubernetes import client, config
label_desc: Use image node_id 6 for calling the EKSHandler obj's underlying member method code with example usage: obj.get_return_status() and returns: int, int, int, container_status, int