code: def create_hvd_pid_server_cmd(
      allocation_id: str, num_slot_ids: int
  ) -> List[str]:
      return [
          "python3",
          "-m",
          "determined.exec.pid_server",
          # Use SIGINT on horovod, because it freaks out with SIGTERM.
          "--on-fail",
          "SIGINT",
          "--on-exit",
          "WAIT",
          f"/tmp/pid_server-{allocation_id}",
          str(num_slot_ids),
          "--",
      ]
  
file_path: determined/harness/determined/launch/horovod.py
imports: import argparse
  import logging
  import os
  import subprocess
  import sys
  import time
  from typing import List, Tuple
  import determined
  from determined import horovod, util
  from determined.common import api
  from determined.common.api import certs
  from determined.constants import DTRAIN_SSH_PORT
label_desc: Use image node_id 2 for calling a global function with example usage: create_hvd_pid_server_cmd(allocation_id, num_slot_ids) and returns: list