This function was recently moved to `libcloud.utils.networking` and a new `is_public_ip` function was also added there.