class_docstr: Deprecated class for launching pods.
  
  Please use airflow.providers.cncf.kubernetes.utils.pod_manager.PodManager instead.
code: def _exec_pod_command(self, resp, command):
      if resp.is_open():
          self.log.info("Running command... %s\n", command)
          resp.write_stdin(command + "\n")
          while resp.is_open():
              resp.update(timeout=1)
              if resp.peek_stdout():
                  return resp.read_stdout()
              if resp.peek_stderr():
                  self.log.info(resp.read_stderr())
                  break
      return None
  
imports: from __future__ import annotations
  import json
  import math
  import time
  import warnings
  from typing import TYPE_CHECKING, cast
  import pendulum
  import tenacity
  from kubernetes import client, watch
  from kubernetes.client.rest import ApiException
  from kubernetes.stream import stream
  from requests.exceptions import HTTPError
  from airflow.exceptions import AirflowException, RemovedInAirflow3Warning
  from airflow.providers.cncf.kubernetes.kube_client import get_kube_client
  from airflow.providers.cncf.kubernetes.pod_generator import PodDefaults
  from airflow.settings import pod_mutation_hook
  from airflow.utils.log.logging_mixin import LoggingMixin
  from airflow.utils.state import State
label_desc: Use image node_id 15 for calling the PodLauncher obj's underlying member method code with example usage: obj._exec_pod_command(resp, command) and returns: None, resp