code: def compile_ip_v6(rule):
      
      if isinstance(rule.value, ipranges.Range):
          return rule
      return IPV6Rule(ipranges.from_str_v6(rule.value))
docs: Compiler helper method: attempt to compile constant into object representing
      IPv6 address to enable relations and thus simple comparisons using Python
      operators.