def is_private(ip_addr):
 return ipaddress.ip_address(ip_addr).is_private

def is_private ( ip_addr ) : return ipaddress . ip_address ( ip_addr ) . is_private
check if the given ip address is a private address .