code: def test_random_label():
      strategy = RandomLabel("test")
      addresses = config.get_external_addresses(label="test")
      assert len(addresses) == 2
      assert strategy.get_allocated_address(config, dict()) in addresses
  
file_path: mars/mars/oscar/backends/mars/tests/test_allocate_strategy.py
imports: import pytest
  from ....None import create_actor_ref
  from ....errors import NoIdleSlot
  from ...allocate_strategy import AddressSpecified, MainPool, RandomSubPool, Random, RandomLabel, IdleLabel
  from ...config import ActorPoolConfig
label_desc: Use image node_id 5 for calling a global function with example usage: test_random_label() without return types