def is_team_admin(self, team_name, sess):
        user_teams = self.api_parser(self.api_get('/user/teams', sess=sess))
        return any(team.get('organization', {}).get('login') == team_name or
                   team.get('permission') == 'admin'
                   for team in user_teams)
dataset/ETHPy150Open gratipay/gratipay.com/gratipay/elsewhere/github.py/GitHub.is_team_admin/operator `and` -> `or`