code: def test_bad():
      for tag, bad in bads.items():
          exc = None
          try:
              config = TestConfig(**bad)
              config.validate()
          except Exception as e:
              exc = e
          assert exc is not None
  
file_path: nni/test/ut/experiment/test_config_base.py
imports: from copy import deepcopy
  from dataclasses import dataclass
  from typing import Dict, List, Optional, Union
  from nni.experiment.config.base import ConfigBase
  from nni.experiment.config.utils import diff
label_desc: Use image node_id 2 for calling a global function with example usage: test_bad() without return types