Except to the extent otherwise provided in regulations, in the case of any partnership the tax matters partner of which resides outside the United States or the books of which are maintained outside the United States, no deduction, loss, or credit shall be allowable to any partner unless section
6031 is complied with for the partnership’s taxable year in which such deduction, loss, or credit arose at such time as the Secretary prescribes by regulations.