docs: public static void addExecutorContainerArgs(
        List<String> args,
        Map<ExecutorPort, String> ports,
        String containerIndex) {
      String masterPort = ExecutorPort.getPort(ExecutorPort.MASTER_PORT, ports);
      String tmasterControllerPort = ExecutorPort.getPort(
          ExecutorPort.TMASTER_CONTROLLER_PORT, ports);
      String tmasterStatsPort = ExecutorPort.getPort(ExecutorPort.TMASTER_STATS_PORT, ports);
      String shellPort = ExecutorPort.getPort(ExecutorPort.SHELL_PORT, ports);
      String metricsmgrPort = ExecutorPort.getPort(ExecutorPort.METRICS_MANAGER_PORT, ports);
      String schedulerPort = ExecutorPort.getPort(ExecutorPort.SCHEDULER_PORT, ports);
      String metricsCacheMasterPort = ExecutorPort.getPort(
          ExecutorPort.METRICS_CACHE_MASTER_PORT, ports);
      String metricsCacheStatsPort = ExecutorPort.getPort(
          ExecutorPort.METRICS_CACHE_STATS_PORT, ports);
      String ckptmgrPort = ExecutorPort.getPort(ExecutorPort.CHECKPOINT_MANAGER_PORT, ports);
      String remoteDebuggerPorts = ExecutorPort.getPort(
          ExecutorPort.JVM_REMOTE_DEBUGGER_PORTS, ports);
  
      if (containerIndex != null) {
        args.add(createCommandArg(ExecutorFlag.Shard, containerIndex));
      }
      args.add(createCommandArg(ExecutorFlag.MasterPort, masterPort));
      args.add(createCommandArg(ExecutorFlag.TMasterControllerPort, tmasterControllerPort));
      args.add(createCommandArg(ExecutorFlag.TMasterStatsPort, tmasterStatsPort));
      args.add(createCommandArg(ExecutorFlag.ShellPort, shellPort));
      args.add(createCommandArg(ExecutorFlag.MetricsManagerPort, metricsmgrPort));
      args.add(createCommandArg(ExecutorFlag.SchedulerPort, schedulerPort));
      args.add(createCommandArg(ExecutorFlag.MetricsCacheManagerMasterPort, metricsCacheMasterPort));
      args.add(createCommandArg(ExecutorFlag.MetricsCacheManagerStatsPort, metricsCacheStatsPort));
      args.add(createCommandArg(ExecutorFlag.CheckpointManagerPort, ckptmgrPort));
      if (remoteDebuggerPorts != null) {
        args.add(createCommandArg(ExecutorFlag.JvmRemoteDebuggerPorts, remoteDebuggerPorts));
      }
    }