code: def _check_directory_arguments(self):
          
          if not os.path.isdir(self.datapath):
              raise (NotADirectoryError('Directory does not exist: %s' % self.datapath))
          if self.time_delay:
              if self.time_delay < 1:
                  raise ValueError('Time step argument must be greater than 0, but gave: %i' % self.time_delay)
              if not isinstance(self.time_delay, int):
                  raise ValueError('Time step argument must be an integer, but gave: %s' % str(self.time_delay))
docs: Validates arguments for loading from directories, including static image and time series directories.