code: def test_zero_optim(world_size):
      spawn(run_dist, world_size)
  
file_path: ColossalAI/tests/test_zero/test_gemini/test_zerooptim_state_dict.py
imports: import pytest
  import torch
  import torch.distributed
  import colossalai
  from colossalai.nn.optimizer import HybridAdam
  from colossalai.testing import parameterize, rerun_if_address_is_in_use, spawn
  from colossalai.utils import set_seed
  from colossalai.zero import GeminiDDP, GeminiOptimizer
  from colossalai.zero.gemini.chunk import search_chunk_configuration
  from tests.kit.model_zoo import model_zoo
label_desc: Use image node_id 3 for calling a global function with example usage: test_zero_optim(world_size) without return types