<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def collection(self, name):
 """ Returns a collection with the given name :param name Collection name :returns Collection """


        return Collection(
            name=name,
            api_resource=self.api.collection(name),
            api=self.api,
        )