code: def validate_all_content(experiment_config, config_path):
      '''Validate whether experiment_config is valid'''
      parse_path(experiment_config, config_path)
      validate_common_content(experiment_config)
      validate_pai_trial_conifg(experiment_config)
      experiment_config['maxExecDuration'] = parse_time(experiment_config['maxExecDuration'])
      if experiment_config.get('advisor'):
          if experiment_config.get('assessor') or experiment_config.get('tuner'):
              print_error('advisor could not be set with assessor or tuner simultaneously!')
              exit(1)
          parse_advisor_content(experiment_config)
          validate_annotation_content(experiment_config, 'advisor', 'builtinAdvisorName')
      else:
          if not experiment_config.get('tuner'):
              raise Exception('Please provide tuner spec!')
          parse_tuner_content(experiment_config)
          parse_assessor_content(experiment_config)
          validate_annotation_content(experiment_config, 'tuner', 'builtinTunerName'f validate_all_content(experiment_config, config_path):
      '''Validate whether experiment_config is valid'''
      parse_path(experiment_config, config_path)
      validate_common_content(experiment_config)
      validate_pai_trial_conifg(experiment_config)
      experiment_config['maxExecDuration'] = parse_time(experiment_config['maxExecDuration'])
      if experiment_config.get('advisor'):
          if experiment_config.get('assessor') or experiment_config.get('tuner'):
              print_error('advisor could not be set with assessor or tuner simultaneously!')
              exit(1)
          parse_advisor_content(experiment_config)
          validate_annotation_content(experiment_config, 'advisor', 'builtinAdvisorName')
      else:
          if not experiment_config.get('tuner'):
              raise Exception('Please provide tuner spec!')
          parse_tuner_content(experiment_config)
          parse_assessor_content(experiment_config)
          validate_annotation_content(experiment_config, 'tuner', 'builtinTunerName')
docs: Validate whether experiment_config is valid