Each foreign partner of a partnership shall be allowed a credit under section
33 for such partner’s share of the withholding tax paid by the partnership under this section. Such credit shall be allowed for the partner’s taxable year in which (or with which) the partnership taxable year (for which such tax was paid) ends.