<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extend(self, iterable):
 """Extend the list by appending all the items in the given list."""

        return super(Collection, self).extend(
            self._ensure_iterable_is_valid(iterable))