code: def validate_class_args(self, **kwargs):
      Schema(
          {
              "optimize_mode": self.choices(
                  "optimize_mode", "maximize", "minimize"
              ),
              Optional("all_checkpoint_dir"): str,
              Optional("population_size"): self.range(
                  "population_size", int, 0, 99999
              ),
              Optional("factors"): float,
              Optional("fraction"): float,
          }
      ).validate(kwargs)
  
imports: import copy
  import logging
  import os
  import random
  import numpy
  from schema import Schema, Optional
  import nni
  from nni import ClassArgsValidator
  import nni.parameter_expressions
  from nni.tuner import Tuner
  from nni.utils import OptimizeMode, extract_scalar_reward, split_index, json2parameter, json2space
label_desc: Use image node_id 1 for calling the PBTClassArgsValidator obj's underlying member method code with example usage: obj.validate_class_args() without return types