code: def get_platform_dir(config_content):
      """get the dir list to be deleted"""
      platform = config_content.get("trainingServicePlatform")
      dir_list = []
      if platform == "remote":
          machine_list = config_content.get("machineList")
          for machine in machine_list:
              host = machine.get("ip")
              port = machine.get("port")
              dir_list.append(host + ":" + str(port) + "/tmp/nni")
      elif platform == "pai":
          host = config_content.get("paiConfig").get("host")
          user_name = config_content.get("paiConfig").get("userName")
          output_dir = config_content.get("trial").get("outputDir")
          dir_list.append(
              "server: {0}, path: {1}/nni".format(host, user_name)
          )
          if output_dir:
              dir_list.append(output_dir)
      return dir_list
  
imports: import csv
  import os
  import sys
  import json
  import time
  import shutil
  import subprocess
  from functools import cmp_to_key
  import traceback
  from datetime import datetime, timezone
  from subprocess import Popen
  from .rest_utils import rest_get, rest_delete, check_rest_server_quick, check_response
  from .url_utils import trial_jobs_url, experiment_url, trial_job_id_url, export_data_url, metric_data_url
  from .config_utils import Config, Experiments
  from .constants import NNI_HOME_DIR, EXPERIMENT_INFORMATION_FORMAT, EXPERIMENT_DETAIL_FORMAT, EXPERIMENT_MONITOR_INFO, TRIAL_MONITOR_HEAD, TRIAL_MONITOR_CONTENT, TRIAL_MONITOR_TAIL, REST_TIME_OUT
  from .common_utils import print_normal, print_error, print_warning, detect_process, get_yml_content, generate_temp_dir
  from .common_utils import print_green
  from .command_utils import check_output_command, kill_command
  from .ssh_utils import create_ssh_sftp_client, remove_remote_directory
label_desc: Use image node_id 25 for calling a global function with example usage: get_platform_dir(config_content) and returns: dir_list