code: def platform_clean(args):
      """clean up the experiment data"""
      config_path = os.path.abspath(args.config)
      if not os.path.exists(config_path):
          print_error("Please set correct config path.")
          exit(1)
      config_content = get_yml_content(config_path)
      platform = config_content.get("trainingServicePlatform")
      if platform == "local":
          print_normal("it doesn’t need to clean local platform.")
          exit(0)
      if platform not in ["remote", "pai"]:
          print_normal("platform {0} not supported.".format(platform))
          exit(0)
      update_experiment()
      dir_list = get_platform_dir(config_content)
      if not dir_list:
          print_normal("No folder of NNI caches is found.")
          exit(1)
      while True:
          print_normal(
              "This command will remove below folders of NNI caches. If other users are using experiments"
              " on below hosts, it will be broken."
          )
          for value in dir_list:
              print("       " + value)
          inputs = input("INFO: do you want to continue?[y/N]:")
          if not inputs.lower() or inputs.lower() in ["n", "no"]:
              exit(0)
          elif inputs.lower() not in ["y", "n", "yes", "no"]:
              print_warning("please input Y or N.")
          else:
              break
      if platform == "remote":
          machine_list = config_content.get("machineList")
          remote_clean(machine_list)
      print_normal("Done.")
  
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 26 for calling a global function with example usage: platform_clean(args) without return types