code: def is_multicast(text):
      
      try:
          first = ord(dns.ipv4.inet_aton(text)[0])
          return (first >= 224 and first <= 239)
      except Exception:
          try:
              first = ord(dns.ipv6.inet_aton(text)[0])
              return (first == 255)
          except Exception:
              raise ValueError
docs: Is the textual-form network address a multicast address?
  
      @param text: the textual address
      @raises ValueError: the address family cannot be determined from the input.
      @rtype: bool