I inherited an IRA from a parent that pasted. How do I go about using the 5329 form in regards to withdrawing the funds with no penalty? Reason #4??

Can I just go and withdrawal all of the funds today and prepare the form next year with my taxes or do I complete the form first in order to see if I will be billed a penalty?