code: def check_low_level_zero_plugin(stage: int, early_stop: bool = True):
      """check low level zero plugin over model zoo
  
      Args:
          stage (int), stage of low level zero plugin
          early_stop (bool, optional): Whether to stop when getting the first error. Defaults to True.
      """
      passed_models = []
      failed_info = {}  # (model_name, error) pair
      ignore_models = (
          _AMP_ERR_MODELS + _LOW_LEVEL_ZERO_ERR_MODELS + _STUCK_MODELS
      )
      skipped_models = []
  
      if IS_FAST_TEST:
          registry = model_zoo.get_sub_registry(COMMON_MODELS)
      else:
          registry = model_zoo
  
      for name, (
          model_fn,
          data_gen_fn,
          output_transform_fn,
          _,
          _,
      ) in registry.items():
          # FIXME(ver217): fix these models
          if name in ignore_models:
              skipped_models.append(name)
              continue
          err = run_fn(
              stage, model_fn, data_gen_fn, output_transform_fn
          )
  
          device_utils.empty_cache()
  
          if err is None:
              passed_models.append(name)
          else:
              failed_info[name] = err
              if early_stop:
                  break
  
      if dist.get_rank() == 0:
          print(
              f"Passed models({len(passed_models)}): {passed_models}\n\n"
          )
          print(
              f"Failed models({len(failed_info)}): {list(failed_info.keys())}\n\n"
          )
          print(
              f"Skipped models({len(skipped_models)}): {skipped_models}\n\n"
          )
      assert len(failed_info) == 0, "\n".join(
          [f"{k}: {v}" for k, v in failed_info.items()]
      )
  
file_path: ColossalAI/tests/test_booster/test_plugin/test_low_level_zero_plugin.py
imports: from typing import Optional
  import torch
  import torch.distributed
  from torch.optim import Adam
  import colossalai
  import colossalai.utils.device
  from colossalai.booster import Booster
  from colossalai.booster.plugin import LowLevelZeroPlugin
  from colossalai.testing import clear_cache_before_run, parameterize, rerun_if_address_is_in_use, spawn
  from tests.kit.model_zoo import COMMON_MODELS, IS_FAST_TEST, model_zoo
label_desc: Use image node_id 2 for calling a global function with example usage: check_low_level_zero_plugin(stage, early_stop) without return types