@property
    def team(self):
        if not self.data.playerOrTeamId:
            return None

        try:
            int(self.data.playerOrTeamId)
            return None
        except ValueError:
            return cassiopeia.riotapi.get_team_by_id(self.data.playerOrTeamId)
L{TaskLevel.parent} of the root task level is C{None}.
dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/league.py/Entry.team--crossover with--dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/TaskLevelTests.test_parent_of_root