def METHOD_NAME(core, args):
    retries = 10
    while retries:
        try:
            pod = core.list_namespaced_pod(namespace=args.namespace,
                                           watch=False,
                                           label_selector="job-name={}".
                                           format(args.job_name))
            return pod
        except client.rest.ApiException as e:
            print("ERROR: Exception on list_namespaced_pod, ", e)
            retries -= 1
            if retries == 0:
                raise e
            time.sleep(5)
            # One of solutions to reload config
            # https://github.com/DataBiosphere/toil/issues/2867
            config.load_kube_config(context=args.context,
                                    persist_config=False)
            core = client.CoreV1Api()
            continue
        # exception might happen deep inside kubernetes, example:
        # https://github.com/kernelci/kernelci-core/issues/1470#issue-1408983064
        except Exception as e:
            print(f"ERROR: find_pod generic exception: {e!r}")
            retries -= 1
            if retries == 0:
                raise e
            time.sleep(5)
            continue
    return None