code: def builder_factory(
      agent_types: Dict[ma_types.AgentID, ma_types.GenericAgent],
      agent_configs: Dict[ma_types.AgentID, ma_types.AgentConfig],
      init_builder_fn: Optional[ma_types.InitBuilderFn] = None,
  ) -> Dict[ma_types.AgentID, jax_builders.GenericActorLearnerBuilder]:
      """Returns default policy networks for all agents."""
      init_fn = init_builder_fn or init_default_builder
      builders = {}
      for agent_id, agent_type in agent_types.items():
          builders[agent_id] = init_fn(
              agent_type, agent_configs[agent_id]
          )
      return builders
  
file_path: acme/acme/agents/jax/multiagent/decentralized/factories.py
imports: import enum
  from typing import Any, Dict, Optional
  from acme import specs
  from acme.adders import reverb
  from acme.agents.jax import builders
  from acme.agents.jax import ppo
  from acme.agents.jax import sac
  from acme.agents.jax import td3
  from acme.multiagent import types
  from acme.multiagent import utils
label_desc: Use image node_id 8 for calling a global function with example usage: builder_factory(agent_types, agent_configs, init_builder_fn) and returns: builders