def aggregate(self):
        from nefertari.elasticsearch import ES
        aggregations_params = self.pop_aggregations_params()
        if self.view._auth_enabled:
            self.check_aggregations_privacy(aggregations_params)
        self.stub_wrappers()

        return ES(self.view.Model.__name__).aggregate(
            _aggregations_params=aggregations_params,
            **self._query_params)
return the team if it was created or found, and user is member 
dataset/ETHPy150Open ramses-tech/nefertari/nefertari/view_helpers.py/ESAggregator.aggregate--crossover with--dataset/ETHPy150Open UCSB-CS-Using-GitHub-In-Courses/github-acad-scripts/github_acadwf.py/addStudentToTeams