In any women's bathroom, everyone has privacy except when washing hands.
How do you know?
====================================
Because in any public women's lavatory, there are stalls with doors on the toilets, That makes them private.
The only things anyone can do in public is wash and dry their hands.
There have been no incidents of transsexuals assaulting women in public lavatories. This law could not stop it if this was a problem.