<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dottedQuadToNum(ip):
 """ Convert decimal dotted quad string to long integer 1 16777218 16908291 16909060 4294967295 Traceback (most recent call last):
 ValueError: Not a good dotted-quad IP: 255.255.255.256 """


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

    try:
        return struct.unpack('!L',
            socket.inet_aton(ip.strip()))[0]
    except socket.error:
        raise ValueError('Not a good dotted-quad IP: %s' % ip)
    return