It is better to raise NotImplementedError here because assert will become no-op if python is executed with -O option.