code: def add_pod_suffix(
      *,
      pod_name: str,
      rand_len: int = 8,
      max_len: int = POD_NAME_MAX_LENGTH,
  ) -> str:
      """Add random string to pod name while staying under max length.
  
      :param pod_name: name of the pod
      :param rand_len: length of the random string to append
      :param max_len: maximum length of the pod name
      :meta private:
      """
      suffix = "-" + rand_str(rand_len)
      return pod_name[: max_len - len(suffix)].strip("-.") + suffix
  
file_path: airflow/airflow/providers/cncf/kubernetes/kubernetes_helper_functions.py
imports: from __future__ import annotations
  import logging
  import secrets
  import string
  from typing import TYPE_CHECKING
  import pendulum
  from slugify import slugify
  from airflow.compat.functools import cache
  from airflow.configuration import conf
label_desc: Use image node_id 2 for calling a global function with example usage: add_pod_suffix() and returns: unknown