def ipv4(self):
        ip = None
        klass = self.__class__

        if self._module.version == 4:
            ip = klass(self._value, 4)
        elif self._module.version == 6:
            if 0 <= self._value <= _ipv4.max_int:
                ip = klass(self._value, 4)
            elif _ipv4.max_int <= self._value <= 0xffffffffffff:
                ip = klass(self._value - 0xffff00000000, 4)
            else:
                raise AddrConversionError('IPv6 address %s unsuitable for ' \
                    'conversion to IPv4!' % self)
        return ip
Set a specific backend by name
dataset/ETHPy150Open drkjam/netaddr/netaddr/ip/__init__.py/IPAddress.ipv4--crossover with--dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/library.py/set_backend