code: def in_network(ip_address, cidrs):
      """Check that an ip_address is within a set of CIDRs
  
      Args:
          ip_address (str or netaddr.IPAddress): IP address to check
          cidrs (set): String CIDRs
  
      Returns:
          Boolean representing if the given IP is within any CIDRs
      """
      if not valid_ip(ip_address):
          return False
  
      for cidr in cidrs:
          try:
              network = IPNetwork(cidr)
          except AddrFormatError:
              LOGGER.error("Invalid IP Network: %s", cidr)
              continue
          if ip_address in network:
              return True
      return False
  
file_path: streamalert/streamalert/shared/utils.py
imports: from collections import deque
  from netaddr import IPAddress, IPNetwork
  from netaddr.core import AddrFormatError
  from streamalert.shared.logger import get_logger
  from streamalert.shared.normalize import Normalizer
label_desc: Use image node_id 2 for calling a global function with example usage: in_network(ip_address, cidrs) and returns: False, False, True