code: def set_V1_common_config(experiment_config, port, config_file_name):
      version_check = True
      # debug mode should disable version check
      if experiment_config.get("debug") is not None:
          version_check = not experiment_config.get("debug")
      # validate version check
      if experiment_config.get("versionCheck") is not None:
          version_check = experiment_config.get("versionCheck")
      response = rest_put(
          cluster_metadata_url(port),
          json.dumps({"version_check": version_check}),
          REST_TIME_OUT,
      )
      validate_response(response, config_file_name)
      if experiment_config.get("logCollection"):
          data = json.dumps(
              {"log_collection": experiment_config.get("logCollection")}
          )
          response = rest_put(
              cluster_metadata_url(port), data, REST_TIME_OUT
          )
          validate_response(response, config_file_name)
  
imports: import json
  import os
  from pathlib import Path
  import sys
  import string
  import random
  import time
  import re
  from subprocess import Popen, check_call, CalledProcessError, PIPE, STDOUT
  from nni.experiment.config import ExperimentConfig, convert
  from nni.tools.package_utils.tuner_factory import get_builtin_module_class_name
  from .launcher_utils import validate_all_content
  from .rest_utils import rest_put, rest_post, check_rest_server, check_response
  from .url_utils import cluster_metadata_url, experiment_url, get_local_urls, set_prefix_url
  from .config_utils import Config, Experiments
  from .common_utils import get_yml_content, get_json_content, print_error, print_normal, detect_port
  from .constants import NNI_HOME_DIR, ERROR_INFO, REST_TIME_OUT, EXPERIMENT_SUCCESS_INFO, LOG_HEADER
  from .command_utils import check_output_command, kill_command
  from .nnictl_utils import update_experiment
label_desc: Use image node_id 7 for calling a global function with example usage: set_V1_common_config(experiment_config, port, config_file_name) without return types