def _validate_arguments(self):
<EOL>if len(self.chan_list) < self.MIN_CHANNELS:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>'.format(self.MIN_CHANNELS))<EOL><DEDENT>if self.n_datasets < self.MIN_DATASETS:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (self.MIN_DATASETS, self.n_datasets)<EOL>)<EOL><DEDENT>if self.n_datasets > self.MAX_DATASETS:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (self.MAX_DATASETS, self.n_datasets)<EOL>)<EOL><DEDENT>
Sanity check arguments and raise errors if required