code: def test_low_level_zero_plugin(early_stop: bool = True):
      spawn(run_dist, 2, early_stop=early_stop)
  
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 4 for calling a global function with example usage: test_low_level_zero_plugin(early_stop) without return types