docstr: A callback request including a TI with an exec config with a V1Pod should safely roundtrip.
docstr_tok: ["A","callback","request","including","a","TI","with","an","exec","config","with","a","V1Pod","should","safely","roundtrip","."]
code: def test_simple_ti_roundtrip_exec_config_pod(self):
      """A callback request including a TI with an exec config with a V1Pod should safely roundtrip."""
      from kubernetes.client import models as k8s
  
      from airflow.callbacks.callback_requests import (
          TaskCallbackRequest,
      )
      from airflow.models import TaskInstance
      from airflow.models.taskinstance import SimpleTaskInstance
      from airflow.operators.bash import BashOperator
  
      test_pod = k8s.V1Pod(
          metadata=k8s.V1ObjectMeta(name="hello", namespace="ns")
      )
      op = BashOperator(
          task_id="hi",
          executor_config={"pod_override": test_pod},
          bash_command="hi",
      )
      ti = TaskInstance(task=op)
      s = SimpleTaskInstance.from_ti(ti)
      data = TaskCallbackRequest("hi", s).to_json()
      actual = TaskCallbackRequest.from_json(
          data
      ).simple_task_instance.executor_config["pod_override"]
      assert actual == test_pod
  
file_path: airflow/tests/callbacks/test_callback_requests.py
imports: from __future__ import annotations
  from datetime import datetime
  import pytest
  from airflow.callbacks.callback_requests import CallbackRequest, DagCallbackRequest, SlaCallbackRequest, TaskCallbackRequest
  from airflow.models.dag import DAG
  from airflow.models.taskinstance import SimpleTaskInstance, TaskInstance
  from airflow.operators.bash import BashOperator
  from airflow.utils import timezone
  from airflow.utils.state import State
label_desc: Use image node_id 3 for calling the TestCallbackRequest obj's underlying member method code with example usage: obj.test_simple_ti_roundtrip_exec_config_pod() without return types