<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transform(self, callback):
 """ Transform each item in the collection using a callback. :param callback: The callback :type callback: callable :rtype: Collection """

        self._items = self.map(callback).all()

        return self