Self employed

Thanks for your response.  Legally,  I see that self-preparation of tax returns matches the description of work done for myself and per IRS definition of earned income any income earned as a result of work done for myself counts as earned income. Is there precedent you are aware of where IRS has rejected accounting such income as earned income?