<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def numToDottedQuad(num):
 """ Convert long int to dotted quad string Traceback (most recent call last):
 ValueError: Not a good numeric IP: -1 '0.0.0.1' '1.0.0.2' '1.2.0.3' '1.2.3.4' '255.255.255.255' Traceback (most recent call last):
 ValueError: Not a good numeric IP: 4294967296 """


    # import here to avoid it when ip_addr values are not used
    import socket, struct

    # no need to intercept here, 4294967295 is fine
    if num > 4294967295 or num < 0:
        raise ValueError('Not a good numeric IP: %s' % num)
    try:
        return socket.inet_ntoa(
            struct.pack('!L', long(num)))
    except (socket.error, struct.error, OverflowError):
        raise ValueError('Not a good numeric IP: %s' % num)