    def _check_dataset(self):
        """ Sanity check for dataset. """
        
        # the order of these asserts is important for testing
        assert len(self.img_list['hr']) == self.img_list['hr'].shape[0], 'UnevenDatasets'
        assert self._matching_datasets(), 'Input/LabelsMismatch'
Sanity check for dataset.
ISR/utils/datahandler.py