<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_task(self, task, params={}, **options):
 """Returns the compact records for all attachments on the task. Parameters task : {Id} Globally unique identifier for the task. [params] : {Object} Parameters for the request """

        path = "/tasks/%s/attachments" % (task)
        return self.client.get_collection(path, params, **options)