code: def _recursive_validate_child(child):
      if isinstance(child, ConfigBase):
          child._validate_canonical()
      elif isinstance(child, list):
          for item in child:
              _recursive_validate_child(item)
      elif isinstance(child, dict):
          for item in child.values():
              _recursive_validate_child(item)
  
file_path: nni/nni/experiment/config/base.py
imports: import copy
  import dataclasses
  from pathlib import Path
  import yaml
  from .None import utils
label_desc: Use image node_id 3 for calling a global function with example usage: _recursive_validate_child(child) without return types