code: def inet_ntop(family, address):
      
      if family == AF_INET:
          return dns.ipv4.inet_ntoa(address)
      elif family == AF_INET6:
          return dns.ipv6.inet_ntoa(address)
      else:
          raise NotImplementedError
docs: Convert the binary form of a network address into its textual form.
  
      @param family: the address family
      @type family: int
      @param address: the binary address
      @type address: string
      @raises NotImplementedError: the address family specified is not
      implemented.
      @rtype: string