<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def connected_socket(address, timeout=3):
 """ yields a connected socket """

    sock = socket.create_connection(address, timeout)
    yield sock
    sock.close()