code: def get_ip_info(ip_str):
      
      ip = None
      is_routable_ip = False
      if is_valid_ip(ip_str):
          ip = ip_str
          is_routable_ip = is_public_ip(ip)
      return ip, is_routable_ip
docs: Given a string, it returns a tuple of (IP, Routable).