docstr: `make_unique_pod_id` doesn't actually guarantee that the regex passes for any input.
  But I guess this test verifies that an otherwise valid pod_id doesn't get _screwed up_.
docstr_tok: ["`","make_unique_pod_id","`","does","n't","actually","guarantee","that","the","regex","passes","for","any","input",".","But","I","guess","this","test","verifies","that","an","otherwise","valid","pod_id","does","n't","get","_screwed","up_","."]
code: def test_pod_name_is_valid(self, pod_id, expected_starts_with):
      """
      `make_unique_pod_id` doesn't actually guarantee that the regex passes for any input.
      But I guess this test verifies that an otherwise valid pod_id doesn't get _screwed up_.
      """
      actual = PodGenerator.make_unique_pod_id(pod_id)
      assert len(actual) <= 253
      assert actual == actual.lower(), "not lowercase"
      # verify using official k8s regex
      regex = r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
      assert re.match(
          regex, actual
      ), "pod_id is invalid - fails allowed regex check"
      assert actual.rsplit("-", 1)[0] == expected_starts_with
      # verify ends with 8 char lowercase alphanum string
      assert re.match(
          rf"^{expected_starts_with}-[a-z0-9]{{8}}$", actual
      ), "doesn't match expected pattern"
  
imports: from __future__ import annotations
  import os
  import re
  import sys
  from unittest import mock
  from unittest.mock import MagicMock
  import pendulum
  import pytest
  from dateutil import parser
  from kubernetes.client import ApiClient, models
  from airflow import __version__
  from airflow.exceptions import AirflowConfigException
  from airflow.providers.cncf.kubernetes.executors.kubernetes_executor import PodReconciliationError
  from airflow.providers.cncf.kubernetes.pod_generator import PodDefaults, PodGenerator, datetime_to_label_safe_datestring, extend_object_field, merge_objects
  from airflow.providers.cncf.kubernetes.secret import Secret
label_desc: Use image node_id 24 for calling the TestPodGenerator obj's underlying member method code with example usage: obj.test_pod_name_is_valid(pod_id, expected_starts_with) without return types