Liouville-type theorems for certain degenerate and singular parabolic equations