<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def itemFromIndex(self, index):
 """ Gets the item given the model index """

        sourceIndex = self.mapToSource(index)
        return self.sourceModel().itemFromIndex(sourceIndex)