code: def validate_class_args(self, **kwargs):
      Schema(
          {
              "optimize_mode": self.choices(
                  "optimize_mode", "maximize", "minimize"
              ),
              Optional("exec_mode"): self.choices(
                  "exec_mode", "serial", "parallelism"
              ),
              Optional("R"): int,
              Optional("eta"): int,
          }
      ).validate(kwargs)
  
imports: import copy
  import logging
  import math
  import sys
  import numpy
  from schema import Schema, Optional
  import nni
  from nni import ClassArgsValidator
  from nni.common.hpo_utils import validate_search_space
  from nni.runtime.common import multi_phase_enabled
  from nni.runtime.msg_dispatcher_base import MsgDispatcherBase
  from nni.runtime.tuner_command_channel import CommandType
  from nni.utils import NodeType, OptimizeMode, MetricType, extract_scalar_reward
  from nni import parameter_expressions
label_desc: Use image node_id 1 for calling the HyperbandClassArgsValidator obj's underlying member method code with example usage: obj.validate_class_args() without return types