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