A dog wearing a red hat opens its mouth wide .