code: def _add_pool_conf(
      config: ActorPoolConfig,
      process_index: int,
      label: str,
      internal_address: str,
      external_address: str,
      env: dict = None,
  ):
      if sys.platform.startswith("win"):
          config.add_pool_conf(
              process_index,
              label,
              external_address,
              external_address,
              env=env,
          )
      else:
          config.add_pool_conf(
              process_index,
              label,
              internal_address,
              external_address,
              env=env,
          )
  
imports: import asyncio
  import logging
  import os
  import re
  import sys
  import time
  import pytest
  from .....tests.core import mock
  from .....utils import get_next_port
  from ....None import create_actor_ref, Actor, kill_actor
  from ....context import get_context
  from ....errors import NoIdleSlot, ActorNotExist, ServerClosed, SendMessageFailed
  from ...allocate_strategy import AddressSpecified, IdleLabel, MainPool, RandomSubPool, ProcessIndex
  from ...config import ActorPoolConfig
  from ...message import new_message_id, CreateActorMessage, DestroyActorMessage, HasActorMessage, ActorRefMessage, SendMessage, TellMessage, ControlMessage, CancelMessage, ErrorMessage, ControlMessageType, MessageType
  from ...pool import create_actor_pool
  from ...router import Router
  from ..pool import MainActorPool, SubActorPool
label_desc: Use image node_id 1 for calling a global function with example usage: _add_pool_conf(config, process_index, label, internal_address, external_address, env) without return types