def _is_ipv4(self, ip):
        try:
            p = IPy.IP(ip)
        except ValueError:
            return False

        if p.version() == 4:
            return True
        return False
Return true if given arg is a valid IPv4 address
dataset/ETHPy150Open SpriteLink/NIPAP/nipap/nipap/backend.py/Nipap._is_ipv4