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