code: def import_data(args):
      """import additional data to the experiment"""
      validate_file(args.filename)
      validate_dispatcher(args)
      content = load_imported_data(args.filename)
  
      experiments_dict = Experiments().get_all_experiments()
      experiment_id = get_config_filename(args)
      rest_port = experiments_dict.get(experiment_id).get("port")
      rest_pid = experiments_dict.get(experiment_id).get("pid")
      if not detect_process(rest_pid):
          print_error("Experiment is not running...")
          return
      running, _ = check_rest_server_quick(rest_port)
      if not running:
          print_error("Restful server is not running")
          return
  
      args.port = rest_port
      if args.port is not None:
          if import_data_to_restful_server(args, content):
              pass
          else:
              print_error("Import data failed!")
  
imports: import json
  import os
  from .rest_utils import rest_put, rest_post, rest_get, check_rest_server_quick, check_response
  from .url_utils import experiment_url, import_data_url
  from .config_utils import Config, Experiments
  from .common_utils import get_json_content, print_normal, print_error, print_warning
  from .nnictl_utils import get_experiment_port, get_config_filename, detect_process
  from .launcher_utils import parse_time
  from .constants import REST_TIME_OUT, TUNERS_SUPPORTING_IMPORT_DATA, TUNERS_NO_NEED_TO_IMPORT_DATA
label_desc: Use image node_id 12 for calling a global function with example usage: import_data(args) without return types