code: def validate_class_args(self, **kwargs):
      Schema(
          {
              Optional("optimize_mode"): self.choices(
                  "optimize_mode", "maximize", "minimize"
              ),
              Optional("task"): self.choices(
                  "task", "cv", "nlp", "common"
              ),
              Optional("input_width"): int,
              Optional("input_channel"): int,
              Optional("n_output_node"): int,
          }
      ).validate(kwargs)
  
imports: import logging
  import os
  from schema import Optional, Schema
  from nni import ClassArgsValidator
  from nni.tuner import Tuner
  from nni.utils import OptimizeMode, extract_scalar_reward
  from .bayesian import BayesianOptimizer
  from .nn import CnnGenerator, MlpGenerator
  from .utils import Constant
  from .graph import graph_to_json, json_to_graph
label_desc: Use image node_id 1 for calling the NetworkMorphismClassArgsValidator obj's underlying member method code with example usage: obj.validate_class_args() without return types