Unknown transformer/function
It's exactly what Brian Drummond says, it's a common mode choke: -



Some may have integral capacitors built in and thus you get the 3rd terminal that connects to ground. Some may not and thus rely on seperate capacitors to ground. Some also have an additional capacitor across live and neutral terminals like this: -