The department may enter into an agreement in writing with any person relating to the liability of such person in respect of any tax imposed by any of the preceding chapters of this title, or any tax in respect to which this section is specifically made applicable, for any taxable period or periods.