code: def disambiguate_dns_url(url, location):
      """accept either IP address or dns name, and return IP"""
      if not ip_pat.match(location):
          location = socket.gethostbyname(location)
      return disambiguate_url(url, location)
  
imports: import re
  import socket
  from functools import reduce
  import zmq
  from ipyparallel.serialize import deserialize_object, serialize_object
  from ipyparallel.util import disambiguate_url
label_desc: Use image node_id 5 for calling a global function with example usage: disambiguate_dns_url(url, location) and returns: disambiguate_url