<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wait_for_service(host, port, timeout=DEFAULT_TIMEOUT):
 """ Return True if connection to the host and port is successful within the timeout. @param host: str: hostname of the server @param port: int: TCP port to which to connect @param timeout: int: length of time in seconds to try to connect before giving up @return: bool """

    service = ServiceURL('tcp://{}:{}'.format(host, port), timeout)
    return service.wait()