def setup_agent(self, agent_id):
        """'

        Same as launch_agent, but instead of running agent.main()
        infinite loop, returns the agent instance

        Args:
            agent_id: [description]
        """
        np.random.seed(int(time.time() * 100000 % 100000))

        session_config, learner_config, env_config = \
            self.session_config, self.learner_config, self.env_config
        agent_mode = 'training'

        # env, env_config = make_env(env_config)

        agent = self.agent_class(
            learner_config=learner_config,
            env_config=env_config,
            session_config=session_config,
            agent_id=agent_id,
            agent_mode=agent_mode,
        )

        return agent
'

        Same as launch_agent, but instead of running agent.main()
        infinite loop, returns the agent instance

        Args:
            agent_id: [description]
        
surreal/launch/launcher.py