code: def add_pod_suffix(
      pod_name: str, rand_len: int = 8, max_len: int = 80
  ) -> 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
      :max_len: maximum length of the pod name
      :meta private:
      """
      suffix = "-" + rand_str(rand_len)
      return pod_name[: max_len - len(suffix)].strip("-.") + suffix
  
imports: from __future__ import annotations
  import copy
  import logging
  import os
  import secrets
  import string
  import warnings
  from functools import reduce
  from typing import TYPE_CHECKING
  import re2
  from dateutil import parser
  from kubernetes.client import models
  from kubernetes.client.api_client import ApiClient
  from airflow.exceptions import AirflowConfigException, PodMutationHookException, PodReconciliationError, RemovedInAirflow3Warning
  from airflow.kubernetes.pre_7_4_0_compatibility.pod_generator_deprecated import PodDefaults, PodGenerator
  from airflow.utils import yaml
  from airflow.utils.hashlib_wrapper import md5
  from airflow.version import version
label_desc: Use image node_id 2 for calling a global function with example usage: add_pod_suffix(pod_name, rand_len, max_len) and returns: unknown