def METHOD_NAME(text):
    ip = text.split('.')
    if len(ip) != 4:
        raise ValueError('Not valid IPV4: %s' % text)
    for i in ip:
        ii = int(i)
        if ii < 0 or ii > 255:
            raise ValueError('Not valid IPV4: %s' % text)
    return True