The immunity granted by section 7507 does not apply to taxes imposed by chapter 21 or chapter 23 of the Code.