class_docstr: KubernetesPodTrigger run on the trigger worker to check the state of Pod.
  
  :param pod_name: The name of the pod.
  :param pod_namespace: The namespace of the pod.
  :param kubernetes_conn_id: The :ref:`kubernetes connection id <howto/connection:kubernetes>`
      for the Kubernetes cluster.
  :param cluster_context: Context that points to kubernetes cluster.
  :param config_file: Path to kubeconfig file.
  :param poll_interval: Polling period in seconds to check for the status.
  :param trigger_start_time: time in Datetime format when the trigger was started
  :param in_cluster: run kubernetes client with in_cluster configuration.
  :param get_logs: get the stdout of the container as logs of the tasks.
  :param startup_timeout: timeout in seconds to start up the pod.
  :param on_finish_action: What to do when the pod reaches its final state, or the execution is interrupted.
      If "delete_pod", the pod will be deleted regardless its state; if "delete_succeeded_pod",
      only succeeded pod will be deleted. You can set to "keep_pod" to keep the pod.
  :param should_delete_pod: What to do when the pod reaches its final
      state, or the execution is interrupted. If True (default), delete the
      pod; if False, leave the pod.
      Deprecated - use `on_finish_action` instead.
class_docstr_tok: ["KubernetesPodTrigger","run","on","the","trigger","worker","to","check","the","state","of","Pod",".",":","param","pod_name",":","The","name","of","the","pod",".",":","param","pod_namespace",":","The","namespace","of","the","pod",".",":","param","kubernetes_conn_id",":","The",":","ref",":","`","kubernetes","connection","id","<","howto\/connection",":","kubernetes",">","`","for","the","Kubernetes","cluster",".",":","param","cluster_context",":","Context","that","points","to","kubernetes","cluster",".",":","param","config_file",":","Path","to","kubeconfig","file",".",":","param","poll_interval",":","Polling","period","in","seconds","to","check","for","the","status",".",":","param","trigger_start_time",":","time","in","Datetime","format","when","the","trigger","was","started",":","param","in_cluster",":","run","kubernetes","client","with","in_cluster","configuration",".",":","param","get_logs",":","get","the","stdout","of","the","container","as","logs","of","the","tasks",".",":","param","startup_timeout",":","timeout","in","seconds","to","start","up","the","pod",".",":","param","on_finish_action",":","What","to","do","when","the","pod","reaches","its","final","state",",","or","the","execution","is","interrupted",".","If","``","delete_pod","''",",","the","pod","will","be","deleted","regardless","its","state",";","if","``","delete_succeeded_pod","''",",","only","succeeded","pod","will","be","deleted",".","You","can","set","to","``","keep_pod","''","to","keep","the","pod",".",":","param","should_delete_pod",":","What","to","do","when","the","pod","reaches","its","final","state",",","or","the","execution","is","interrupted",".","If","True","(","default",")",",","delete","the","pod",";","if","False",",","leave","the","pod",".","Deprecated","-","use","`","on_finish_action","`","instead","."]
code: def should_wait(
      pod_phase: PodPhase, container_state: ContainerState
  ) -> bool:
      return (
          container_state == ContainerState.WAITING
          or container_state == ContainerState.RUNNING
          or (
              container_state == ContainerState.UNDEFINED
              and pod_phase == PodPhase.PENDING
          )
      )
  
imports: from __future__ import annotations
  import asyncio
  import datetime
  import traceback
  import warnings
  from asyncio import CancelledError
  from enum import Enum
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, AsyncIterator
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.providers.cncf.kubernetes.hooks.kubernetes import AsyncKubernetesHook
  from airflow.providers.cncf.kubernetes.utils.pod_manager import OnFinishAction, PodPhase
  from airflow.triggers.base import BaseTrigger, TriggerEvent
label_desc: Use image node_id 6 for calling the KubernetesPodTrigger obj's underlying member method code with example usage: obj.should_wait(pod_phase, container_state) and returns: unknown