code: def validate(self, data):
      train_service = data["trainingServicePlatform"]
      Schema(common_schema["trainingServicePlatform"]).validate(
          train_service
      )
      train_service_schema = training_service_schema_dict[train_service]
      train_service_schema.validate(data)
      self.validate_extras(data)
  
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 1 for calling the NNIConfigSchema obj's underlying member method code with example usage: obj.validate(data) without return types