Well... not on an e-bike but in a normal, man-powered bike.
Here in Barcelona the autonomic police are a bit... douches, I'm not saying that for any particular hate toward police, I got military background and been working in security, I strongly respect the authority, but Mossos d'esquadra (non state autonomic police ) are just corrupt douches serving a totally corrupt administration.
The case is.. I was on my bike, I didn't know what the frock I do, maybe pas in red, maybe going frikking fast while I do.. can't say for sure, but a police car put the siren and starts chasing me, well... I stop and whait, -Are you sure...?- I ear in my mind.. -frock no!- So I put to work mi chicken strong legs, the officer returns to the car while his companion whaiting, and re-start the chase, but we are in a one way road, so I just change my direction, -Are you gonna climb the sidewalk and ran over some civilians mister mosso? I bet you don't fucktard!- of course a chase can be broadcasted in all the police area wich is normally your neighborhood or a couple of them, so you got something like a star or two in GTA terms, I enter whit the bike to a mini-market and just whait, stop as soon as you are sure the cops can't see you, act normally and hide in dark garage door, open appartment, shop where you can enter the e-bike, etc...
I strongly discourage doing that, the cops are going to assume that you got something to hide and they are excellent team workers, but a bike, or electric vehicle, while not that fast, got more advantage than a regular motorbike in populated city or countryside enviorments that are not desertic or plain, so.. if for whatever reason you decide to flip the middle finger to the police, you better put all you got and don't even think in give up.
Recently I was making a high power e-bike, I plan to limit it to legal specs (but can be un-limited any time) but I also think about possible legal encounters, custom make e-bikes are not popular arround here, a idea I got is, to put a e-brake cutt-off sensor in a discrete place, for example attached to a part of the frame, and the magnet, (which is normally magnetic), strapped whit an thin wire at the top of the sensor, so I can easily break it and pull off the piece in a second, resuling in the motor not working no matter what, for a better than nothing ran out of batteries or malfunction excuse, so i'ts imposible that you see me not using the e-bike otherwise has a normal man-powered bike. (fucktard..)
Of course, always be polite and don't act like a smartie whit a cop, a intervention can last only 5 minutes, or 5 hours depending solely on your behaviour.