This reminds me of when people were being rounded up and shoved into white panel vans by people who refused to identify themselves during the portland protests.
If an officer refuses to identify themselves, it's not a lawful arrest, it's a kidnapping. I argued at the time that someone would be entirely within their rights to defend themselves in this circumstance. No doubt the DA would press charges but do you really think a jury would convict?