class_docstr: A model server runner that launches model server in kubernetes cluster.
class_docstr_tok: ["A","model","server","runner","that","launches","model","server","in","kubernetes","cluster","."]
code: def _DeleteModelServerPod(self):
      if self._pod_name is None:
          # No model server Pod has been created yet.
          logging.info("Server pod has not been created.")
          return
      try:
          logging.info("Deleting Pod (name=%s)", self._pod_name)
          self._k8s_core_api.delete_namespaced_pod(
              name=self._pod_name, namespace=self._namespace
          )
      except rest.ApiException as e:
          if e.status == 404:  # Pod is already deleted.
              logging.info(
                  "Pod (name=%s) does not exist.", self._pod_name
              )
              return
          else:
              raise
  
imports: import datetime
  import os
  import time
  from typing import Optional
  from absl import logging
  from apache_beam.utils import retry
  from kubernetes import client
  from kubernetes.client import rest
  from tfx.components.infra_validator import error_types
  from tfx.components.infra_validator import serving_bins
  from tfx.components.infra_validator.model_server_runners import base_runner
  from tfx.proto import infra_validator_pb2
  from tfx.utils import kube_utils
label_desc: Use image node_id 8 for calling the KubernetesRunner obj's underlying member method code with example usage: obj._DeleteModelServerPod() without return types