code: def create_performance_args(
      optimizations: Dict[str, Any]
  ) -> List[str]:
      check.check_in("auto_tune_tensor_fusion", optimizations)
      check.check_in("tensor_fusion_threshold", optimizations)
      check.check_in("tensor_fusion_cycle_time", optimizations)
  
      if optimizations.get("auto_tune_tensor_fusion"):
          performance_args = [
              "--autotune",
              "--autotune-log-file",
              str(constants.HOROVOD_AUTOTUNE_LOG_FILEPATH),
          ]
      else:
          performance_args = [
              "--fusion-threshold-mb",
              str(optimizations.get("tensor_fusion_threshold")),
              "--cycle-time-ms",
              str(optimizations.get("tensor_fusion_cycle_time")),
          ]
  
      # Prevent horovod from auto-tuning these parameters.
      performance_args.extend(
          [
              "--cache-capacity",
              str(1024),
              "--no-hierarchical-allreduce",
              "--no-hierarchical-allgather",
          ]
      )
      return performance_args
  
file_path: determined/harness/determined/horovod.py
imports: import importlib
  import os
  from typing import Any, Dict, List, Optional
  from determined import constants
  from determined.common import check
label_desc: Use image node_id 2 for calling a global function with example usage: create_performance_args(optimizations) and returns: performance_args