code: def validate_all_content(experiment_config, config_path):
      """Validate whether experiment_config is valid"""
      parse_path(experiment_config, config_path)
      set_default_values(experiment_config)
  
      NNIConfigSchema().validate(experiment_config)
  
      if "maxExecDuration" in experiment_config:
          experiment_config["maxExecDuration"] = parse_time(
              experiment_config["maxExecDuration"]
          )
  
file_path: nni/nni/tools/nnictl/launcher_utils.py
imports: import os
  from schema import SchemaError
  from .config_schema import NNIConfigSchema
  from .common_utils import print_normal
label_desc: Use image node_id 6 for calling a global function with example usage: validate_all_content(experiment_config, config_path) without return types