expression

I'll eat my hat.

Theme: judgment Keyword: promise

means

A humorous declaration that one considers a particular outcome extremely unlikely.

also

I'll eat my hat if...

Example

If that old engine starts on the first attempt, I'll eat my hat.