How to report Early withdrawal from Canadian RRSP account (Registered Retirement Savings Plan)

I used to work for a Canadian company and that employer made contributions on my behalf to a retirement account (similar to 401K here). All the contributions were made before I move to the US so I didn't have any immigration status at that time (you may assume I was non-resident alien of US).

 

I decided last year to withdraw the whole fund from my RRSP account. Canada applied 25% withholding tax on the fund. Now my question is how to report that as an income to IRS? Based on what the section in the link below describes, I am not subject to tax on this income to IRS since the contributions were made before I moved to the US.

 

Foreign Contributions while a Nonresident Alien

https://www.irs.gov/businesses/the-taxation-of-foreign-pension-and-annuity-distributions

 

Please help me understand this situation better.

 

Thanks a lot