<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_by_project(self, project, params={}, **options):
 """Returns the compact project membership records for the project. Parameters project : {Id} The project for which to fetch memberships. [params] : {Object} Parameters for the request - [user] : {String} If present, the user to filter the memberships to. """

        path = "/projects/%s/project_memberships" % (project)
        return self.client.get_collection(path, params, **options)