A dog wearing a hat stretches open its mouth .