def run_agent_batch(self, agent_ids):
        """
            Launches multiple agent processes with agent_id in agent_ids
            Useful when you want agents to share a GPU

        Args:
            agent_ids (list(int)): each agent's id
        """
        agents = []
        for agent_id in agent_ids:
            component_name = 'agent-{}'.format(agent_id)
            agent = self.run_component(component_name)
            agents.append(agent)
        U.wait_for_popen(agents)

            Launches multiple agent processes with agent_id in agent_ids
            Useful when you want agents to share a GPU

        Args:
            agent_ids (list(int)): each agent's id
        
surreal/launch/launcher.py