<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send(self, jsonstr):
 """ Send jsonstr to the UDP collector """

        udp_sock = socket(AF_INET, SOCK_DGRAM)
        udp_sock.sendto(jsonstr.encode('utf-8'), self.addr)