def getPlayerSpawnInfo(self):
        try:
            return self.playerSpawnInfo
        except __HOLE__:
            self.playerSpawnInfo = [None] * 10
            players = self.getReplayPlayers()
            playerIdToUserId = {}
            for event in self.getReplayTrackerEvents():
                if event['_event'] == 'NNet.Replay.Tracker.SPlayerSetupEvent':
                    playerIdToUserId[event['m_playerId']] = event['m_userId']
                elif event['_event'] == 'NNet.Replay.Tracker.SUnitBornEvent':
                    playerId = event['m_controlPlayerId']
                    if (playerIdToUserId.has_key(playerId)):
                        playerIndex = playerIdToUserId[playerId] # always playerId-1 so far, but this is safer
                        self.playerSpawnInfo[playerIndex] = {
                            'hero': event['m_unitTypeName'],
                            'unit_tag': event['m_unitTag']
                        }
                        del playerIdToUserId[playerId]
                if len(playerIdToUserId) == 0:
                    break
            return self.playerSpawnInfo
dataset/ETHPy150Open karlgluck/heroes-of-the-storm-replay-parser/api/StormReplayParser.py/StormReplayParser.getPlayerSpawnInfo