Socket - Raspberry Pi Pico Wireless Pack

I would like to use tplink_smartplug.py.
We have modified it to use it by calling it from main.py.
After that, if I can send a request to tplink via socket communication, I am done.

However, import socket cannot be used.
Is there any way to use socket, or is there any way to do socket communication with picowireless?

tplink_smartplug.py