docstr: validate the trial config in pai platform
docstr_tok: ["validate","the","trial","config","in","pai","platform"]
code: def validate_pai_trial_conifg(self, experiment_config):
      """validate the trial config in pai platform"""
      if experiment_config.get("trainingServicePlatform") in ["pai"]:
          if (
              experiment_config.get("trial").get("shmMB")
              and experiment_config["trial"]["shmMB"]
              > experiment_config["trial"]["memoryMB"]
          ):
              raise SchemaError(
                  "shmMB should be no more than memoryMB!"
              )
          # backward compatibility
          warning_information = "{0} is not supported in NNI anymore, please remove the field in config file!\
              please refer https://github.com/microsoft/nni/blob/master/docs/en_US/TrainingService/PaiMode.md#run-an-experiment\
              for the practices of how to get data and output model in trial code"
          if experiment_config.get("trial").get("dataDir"):
              print_warning(warning_information.format("dataDir"))
          if experiment_config.get("trial").get("outputDir"):
              print_warning(warning_information.format("outputDir"))
          self.validate_pai_config_path(experiment_config)
  
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 8 for calling the NNIConfigSchema obj's underlying member method code with example usage: obj.validate_pai_trial_conifg(experiment_config) without return types