code: def setTargets(self, targets):
          
          if not self.verifyArguments(targets) and not self.patterned:
              raise NetworkError('setTargets() requires [[...],[...],...] or [{"layerName": [...]}, ...].', targets)
          self.targets = targets
docs: Sets the targets.