code: def contains_any(text, substrings):
      """Check if the text contains any of the given substrings.
  
      For example, contains_any('abc', {'b'}) == True
      Functionally equivalent to matches_any() with patterns like '*substring*', but more efficient
  
      Args:
          text (str): Text to examine
          substrings (iterable): Collection of string substrings (no wildcards)
  
      Returns:
          bool: True if the text contains at least one of the given prefixes, False otherwise.
      """
      if not isinstance(text, str):
          return False
      return any(s in text for s in substrings)
  
file_path: streamalert/rules/helpers/base.py
imports: from fnmatch import fnmatch
  import logging
  import json
  import random
  import time
  import pathlib2
  from streamalert.shared.utils import get_first_key, get_keys, in_network, valid_ip
label_desc: Use image node_id 4 for calling a global function with example usage: contains_any(text, substrings) and returns: any, False