def _unregister(self, cls):
        if not issubclass(cls, self._registerable_class):
            raise ValueError('Only %s classes or subclasses may be '
                             'unregistered.' % self._registerable_class)

        if cls not in self._registry.keys():
            raise NotRegistered('%s is not registered' % cls)

        del self._registry[cls]

        return True
Test creating evoked from array
dataset/ETHPy150Open CiscoSystems/avos/horizon/base.py/Registry._unregister--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_evoked.py/test_array_epochs