code: def verifyArguments(self, arg):
          
          for l in arg:
              if not type(l) == list and \
                 not type(l) == type(Numeric.array([0.0])) and \
                 not type(l) == tuple and \
                 not type(l) == dict:
                  return 0
              if type(l) == dict:
                  for i in l:
                      if not type(i) == str and i not in list(self.layers.keys()):
                          return 0
              else:
                  for i in l:
                      if not type(i) == float and not type(i) == int:
                          return 0
          return 1
docs: Verifies that arguments to setInputs and setTargets are appropriately formatted.