docstr: validate paiConfigPath field
docstr_tok: ["validate","paiConfigPath","field"]
code: def validate_pai_config_path(self, experiment_config):
      """validate paiConfigPath field"""
      if experiment_config.get("trainingServicePlatform") == "pai":
          if experiment_config.get("trial", {}).get("paiConfigPath"):
              # validate commands
              pai_config = get_yml_content(
                  experiment_config["trial"]["paiConfigPath"]
              )
              taskRoles_dict = pai_config.get("taskRoles")
              if not taskRoles_dict:
                  raise SchemaError(
                      "Please set taskRoles in paiConfigPath config file!"
                  )
          else:
              pai_trial_fields_required_list = [
                  "image",
                  "paiStorageConfigName",
                  "command",
              ]
              for trial_field in pai_trial_fields_required_list:
                  if (
                      experiment_config["trial"].get(trial_field)
                      is None
                  ):
                      raise SchemaError(
                          "Please set {0} in trial configuration,\
                                      or set additional pai configuration file path in paiConfigPath!".format(
                              trial_field
                          )
                      )
              pai_resource_fields_required_list = [
                  "gpuNum",
                  "cpuNum",
                  "memoryMB",
              ]
              for required_field in pai_resource_fields_required_list:
                  if (
                      experiment_config["trial"].get(required_field)
                      is None
                      and experiment_config["paiConfig"].get(
                          required_field
                      )
                      is None
                  ):
                      raise SchemaError(
                          "Please set {0} in trial or paiConfig configuration,\
                                      or set additional pai configuration file path in paiConfigPath!".format(
                              required_field
                          )
                      )
  
imports: import json
  import os
  from schema import And, Optional, Or, Regex, Schema, SchemaError
  from nni.tools.package_utils.tuner_factory import create_validator_instance
  from .common_utils import get_yml_content, print_warning
  from .constants import SCHEMA_PATH_ERROR, SCHEMA_RANGE_ERROR, SCHEMA_TYPE_ERROR
label_desc: Use image node_id 7 for calling the NNIConfigSchema obj's underlying member method code with example usage: obj.validate_pai_config_path(experiment_config) without return types