class_docstr: This class is the schema of 'tuner', 'assessor' and 'advisor' sections of experiment configuraion file.
  For example:
  AlgoSchema('tuner') creates the schema of tuner section.
class_docstr_tok: ["This","class","is","the","schema","of","'tuner","'",",","'assessor","'","and","'advisor","'","sections","of","experiment","configuraion","file",".","For","example",":","AlgoSchema","(","'tuner","'",")","creates","the","schema","of","tuner","section","."]
code: def validate_extras(self, data, algo_type):
      builtin_key = self.builtin_keys[algo_type]
      if (builtin_key in data) and (
          set(data.keys()) & self.customized_keys
      ):
          raise SchemaError(
              "{} and {} cannot be specified at the same time.".format(
                  builtin_key, set(data.keys()) & self.customized_keys
              )
          )
  
      if self.missing_customized_keys(data) and builtin_key not in data:
          raise SchemaError(
              "Either customized {} ({}) or builtin {} ({}) must be set.".format(
                  algo_type,
                  self.customized_keys,
                  algo_type,
                  builtin_key,
              )
          )
  
      if not self.missing_customized_keys(data):
          class_file_name = os.path.join(
              data["codeDir"], data["classFileName"]
          )
          if not os.path.isfile(class_file_name):
              raise SchemaError(
                  "classFileName {} not found.".format(class_file_name)
              )
  
      builtin_name = data.get(builtin_key)
      class_args = data.get("classArgs")
      self.validate_class_args(class_args, algo_type, builtin_name)
  
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 4 for calling the AlgoSchema obj's underlying member method code with example usage: obj.validate_extras(data, algo_type) without return types