code: def validate_class_args(self, **kwargs):
      schema.Schema(
          {
              schema.Optional("optimize_mode"): str,
              schema.Optional("seed"): int,
          }
      ).validate(kwargs)
  
file_path: nni/nni/algorithms/hpo/random_tuner.py
imports: from __future__ import annotations
  import logging
  import numpy
  import schema
  from nni import ClassArgsValidator
  from nni.common.hpo_utils import Deduplicator, format_search_space, deformat_parameters
  from nni.tuner import Tuner
label_desc: Use image node_id 1 for calling the RandomClassArgsValidator obj's underlying member method code with example usage: obj.validate_class_args() without return types