code: def create_launch_cmd(
      num_nodes: int,
      proc_per_node: int,
      node_rank: int,
      master_addr: str,
      override_args: List[str],
  ) -> List[str]:
      cmd = [
          "python3",
          "-m",
          "torch.distributed.run",
          "--nnodes",
          str(num_nodes),
          "--nproc_per_node",
          str(proc_per_node),
          "--node_rank",
          str(node_rank),
          "--max_restarts",
          "0",
          "--master_addr",
          master_addr,
          "--master_port",
          str(C10D_PORT),
          "--module",
      ]
  
      cmd.extend(override_args)
      return cmd
  
file_path: determined/harness/determined/launch/torch_distributed.py
imports: import argparse
  import logging
  import os
  import subprocess
  import sys
  from typing import List, Tuple
  import determined
label_desc: Use image node_id 1 for calling a global function with example usage: create_launch_cmd(num_nodes, proc_per_node, node_rank, master_addr, override_args) and returns: cmd