code: def test_render_k8s_pod_yaml(pod_mutation_hook, create_task_instance):
      ti = create_task_instance(
          dag_id="test_render_k8s_pod_yaml",
          run_id="test_run_id",
          task_id="op1",
          execution_date=DEFAULT_DATE,
      )
  
      expected_pod_spec = {
          "metadata": {
              "annotations": {
                  "dag_id": "test_render_k8s_pod_yaml",
                  "run_id": "test_run_id",
                  "task_id": "op1",
                  "try_number": "1",
              },
              "labels": {
                  "airflow-worker": "0",
                  "airflow_version": version,
                  "dag_id": "test_render_k8s_pod_yaml",
                  "run_id": "test_run_id",
                  "kubernetes_executor": "True",
                  "task_id": "op1",
                  "try_number": "1",
              },
              "name": mock.ANY,
              "namespace": "default",
          },
          "spec": {
              "containers": [
                  {
                      "args": [
                          "airflow",
                          "tasks",
                          "run",
                          "test_render_k8s_pod_yaml",
                          "op1",
                          "test_run_id",
                          "--subdir",
                          __file__,
                      ],
                      "name": "base",
                      "env": [
                          {
                              "name": "AIRFLOW_IS_K8S_EXECUTOR_POD",
                              "value": "True",
                          }
                      ],
                  }
              ]
          },
      }
  
      assert ti.render_k8s_pod_yaml() == expected_pod_spec
      pod_mutation_hook.assert_called_once_with(mock.ANY)
  
file_path: airflow/tests/providers/cncf/kubernetes/test_template_rendering.py
imports: from __future__ import annotations
  import os
  from unittest import mock
  import pytest
  from sqlalchemy.orm import make_transient
  from airflow.configuration import TEST_DAGS_FOLDER
  from airflow.models.renderedtifields import RenderedTaskInstanceFields, RenderedTaskInstanceFields
  from airflow.operators.bash import BashOperator
  from airflow.utils.session import create_session
  from airflow.version import version
  from tests.models import DEFAULT_DATE
label_desc: Use image node_id 1 for calling a global function with example usage: test_render_k8s_pod_yaml(pod_mutation_hook, create_task_instance) without return types