In what scenario would self defense against a police officer be justified?

I've had this question in mind for years but never asked it online because I didn't want law enforcement to misconstrue my curiosity as something nefarious (which it isn't).

The question, "Who polices the police?" has been asked many times before, but the usual answer points to the justice system, which doesn't fully address the issue.

There’s plenty of cases where an officer may have took an inappropriate action against an individual that have resulted in death or injury, but they only got a slap on the wrist.

Let's be real—not all cops are bad, but not all cops are good either. So, in what situation would it be justified for a citizen or a potential victim of police misconduct to step in and say, "That's enough," and fight back with force if need be?

Once again I have nothing devious in mind, I just wanna satisfy my late night curiosity.

Edit: I’ve reached a conclusion. There is no situation in which it would be justifiable to defend yourself according to the comments. You should just shut up, comply, and live another day to file a complaint afterwards :)