code: def is_local_address(address):
      """
      Determine whether an address is a local (including loopback) IP address.
  
      Adapted from stackoverflow.com/questions/166506.
  
      Args:
          address (str): Address (can be IP or IP:port)
  
      Returns:
          Boolean
      """
      ip = _get_ip_from_address(address)
  
      # Get all addresses
      addresses = set()
      for iface_name in netifaces.interfaces():
          for i in netifaces.ifaddresses(iface_name).setdefault(
              netifaces.AF_INET, [{"addr": None}]
          ):
              if i["addr"]:
                  addresses.add(ip_address(i["addr"]))
  
      return ip in addresses
  
imports: from ipaddress import ip_address
  import netifaces
label_desc: Use image node_id 2 for calling a global function with example usage: is_local_address(address) and returns: unknown