I rarely write shallow 1D or 2D characters, but sometimes I do for narrative purposes.
For example, I narrate a pair of fugitive slave traders who are vulgar, rude, and dirty to show how dark the world is. Interestingly, these characters generally only appear briefly before eventually dying...