code: def validate_dispatcher(args):
      """validate if the dispatcher of the experiment supports importing data"""
      experiment_id = get_config_filename(args)
      experiment_config = Config(
          experiment_id,
          Experiments().get_all_experiments()[experiment_id]["logDir"],
      ).get_config()
      if experiment_config.get("tuner") and experiment_config[
          "tuner"
      ].get("builtinTunerName"):
          dispatcher_name = experiment_config["tuner"][
              "builtinTunerName"
          ]
      elif experiment_config.get("advisor") and experiment_config[
          "advisor"
      ].get("builtinAdvisorName"):
          dispatcher_name = experiment_config["advisor"][
              "builtinAdvisorName"
          ]
      else:  # otherwise it should be a customized one
          return
      if dispatcher_name not in TUNERS_SUPPORTING_IMPORT_DATA:
          if dispatcher_name in TUNERS_NO_NEED_TO_IMPORT_DATA:
              print_warning(
                  "There is no need to import data for %s"
                  % dispatcher_name
              )
              exit(0)
          else:
              print_error(
                  "%s does not support importing addtional data"
                  % dispatcher_name
              )
              exit(1)
  
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 3 for calling a global function with example usage: validate_dispatcher(args) without return types