code: def _get_artifact_templates_for_callbacks(
      callbacks: Union[
          List[Callback], List[Type[Callback]], CallbackList
      ]
  ) -> List[str]:
      templates = []
      for callback in callbacks:
          templates += list(callback._SAVED_FILE_TEMPLATES)
      return templates
  
imports: import logging
  import os
  from typing import Collection, List, Optional, Type, Union, TYPE_CHECKING
  from ray.tune.callback import Callback, CallbackList
  from ray.tune.logger import CSVLoggerCallback, CSVLogger, JsonLoggerCallback, JsonLogger, LegacyLoggerCallback, TBXLoggerCallback, TBXLogger
label_desc: Use image node_id 1 for calling a global function with example usage: _get_artifact_templates_for_callbacks(callbacks) and returns: templates