To the extent provided in regulations, a trust which is a United States person shall be treated as a foreign trust for purposes of this section and section
6677 if such trust has substantial activities, or holds substantial property, outside the United States.