code: def test_app_can_json_serialize_k8s_pod():
      # This is mostly testing that we have correctly configured the JSON provider to use. Testing the k8s pos
      # is a side-effect of that.
      k8s = pytest.importorskip("kubernetes.client.models")
  
      pod = k8s.V1Pod(
          spec=k8s.V1PodSpec(containers=[k8s.V1Container(name="base")])
      )
      app = application.cached_app(testing=True)
      assert (
          app.json.dumps(pod)
          == '{"spec": {"containers": [{"name": "base"}]}}'
      )
  
imports: from __future__ import annotations
  import hashlib
  import re
  import runpy
  import sys
  from datetime import timedelta
  from unittest import mock
  import pytest
  from werkzeug.routing import Rule
  from werkzeug.test import create_environ
  from werkzeug.wrappers import Response
  from airflow.exceptions import AirflowConfigException
  from airflow.www import app
  from tests.test_utils.config import conf_vars
  from tests.test_utils.decorators import dont_initialize_flask_app_submodules
label_desc: Use image node_id 1 for calling a global function with example usage: test_app_can_json_serialize_k8s_pod() without return types