code: def remote_clean(machine_list, experiment_id=None):
      """clean up remote data"""
      for machine in machine_list:
          passwd = machine.get("passwd")
          userName = machine.get("username")
          host = machine.get("ip")
          port = machine.get("port")
          sshKeyPath = machine.get("sshKeyPath")
          passphrase = machine.get("passphrase")
          if experiment_id:
              remote_dir = "/" + "/".join(
                  ["tmp", "nni-experiments", experiment_id]
              )
          else:
              remote_dir = "/" + "/".join(["tmp", "nni-experiments"])
          sftp = create_ssh_sftp_client(
              host, port, userName, passwd, sshKeyPath, passphrase
          )
          print_normal(
              "removing folder {0}".format(
                  host + ":" + str(port) + remote_dir
              )
          )
          remove_remote_directory(sftp, remote_dir)
  
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 23 for calling a global function with example usage: remote_clean(machine_list, experiment_id) without return types