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

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