code: def is_private_url(url: str):
      """
      Raises exception if url is private
  
      :param url: url to check
      """
  
      hostname = urlparse(url).hostname
      if not hostname:
          # Unable find hostname in url
          return True
      ip = socket.gethostbyname(hostname)
      return ipaddress.ip_address(ip).is_private
  
imports: from urllib.parse import urlparse
  import socket
  import ipaddress
label_desc: Use image node_id 1 for calling a global function with example usage: is_private_url(url) and returns: ipaddress, True