code: def get_pod(
      core_api: k8s_client.CoreV1Api, pod_name: str, namespace: str
  ) -> Optional[k8s_client.V1Pod]:
      """Get a pod from Kubernetes metadata API.
  
      Args:
        core_api: Client of Core V1 API of Kubernetes API.
        pod_name: The name of the Pod.
        namespace: The namespace of the Pod.
  
      Returns:
        The found Pod object. None if it's not found.
      Raises:
        RuntimeError: When it sees unexpected errors from Kubernetes API.
      """
      try:
          return core_api.read_namespaced_pod(
              name=pod_name, namespace=namespace
          )
      except k8s_client.rest.ApiException as e:
          if e.status != 404:
              raise RuntimeError(
                  "Unknown error! \nReason: %s\nBody: %s"
                  % (e.reason, e.body)
              )
          return None
  
imports: import datetime
  import enum
  import os
  import re
  import time
  from typing import Callable, Dict, List, Optional
  from absl import logging
  from kubernetes import client
  from kubernetes import config
label_desc: Use image node_id 11 for calling a global function with example usage: get_pod(core_api, pod_name, namespace) and returns: core_api, None