code: def generate_complexity_tests():
      """Generate complexity tests for every model in the configs directory."""
      configs_dir = os.path.join(_PYCLS_DIR, "configs")
      keys = [
          os.path.join(r, f)
          for r, _, fs in os.walk(configs_dir)
          for f in fs
      ]
      keys = [
          os.path.relpath(k, _PYCLS_DIR) for k in keys if ".yaml" in k
      ]
      generate_tests("complexity", test_complexity, keys)
  
imports: import datetime
  import json
  import os
  import shutil
  import tempfile
  import unittest
  import pycls.core.builders
  import pycls.core.distributed
  import pycls.core.logging
  import pycls.core.net
  import pycls.core.trainer
  import pycls.models.model_zoo
  from parameterized import parameterized
  from pycls.core.config import cfg, load_cfg, reset_cfg
label_desc: Use image node_id 4 for calling a global function with example usage: generate_complexity_tests() without return types