code: def annotations_for_logging_task_metadata(annotation_set):
      if get_logs_task_metadata():
          annotations_for_logging = annotation_set
      else:
          annotations_for_logging = "<omitted>"
      return annotations_for_logging
  
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 6 for calling a global function with example usage: annotations_for_logging_task_metadata(annotation_set) and returns: annotations_for_logging