<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copyTargets(self, arr):
 """ Copies the targets of the argument array into the self.target attribute. """

        array = Numeric.array(arr)
        if not len(array) == self.size:
            raise LayerError('Mismatched target size and layer size in call to copyTargets()', \
                   (len(array), self.size))
        # Removed this because both propagate and backprop (via compute_error) set targets
        #if self.verify and not self.targetSet == 0:
        #    if not self.warningIssued:
        #        print 'Warning! Targets have already been set and no intervening backprop() was called.', \
        #              (self.name, self.targetSet)
        #        print "(Warning will not be issued again)"
        #        self.warningIssued = 1
        if Numeric.add.reduce(array < self.minTarget) or Numeric.add.reduce(array > self.maxTarget):
            print(self.name, self.minTarget, self.maxTarget)
            raise LayerError('Targets for this layer are out of range.', (self.name, array))
        self.target = array
        self.targetSet = 1