code: def test_moe_load_balance(world_size):
      spawn(run_dist, world_size)
  
file_path: ColossalAI/tests/test_moe/test_moe_load_balance.py
imports: import pytest
  import torch
  import torch.distributed
  import colossalai
  from colossalai.booster import Booster
  from colossalai.booster.plugin import LowLevelZeroPlugin
  from colossalai.booster.plugin.low_level_zero_plugin import LowLevelZeroModel
  from colossalai.moe.layers import apply_load_balance
  from colossalai.moe.manager import MOE_MANAGER
  from colossalai.tensor.moe_tensor.api import is_moe_tensor
  from colossalai.testing import rerun_if_address_is_in_use, spawn
  from tests.test_moe.moe_utils import MoeGradientHandler, MoeModel
label_desc: Use image node_id 6 for calling a global function with example usage: test_moe_load_balance(world_size) without return types