code: def starts_with_any(text, prefixes):
      """Check if the text starts with any of the given prefixes.
  
      For example, starts_with_any('abc', {'a'}) == True
      Functionally equivalent to matches_any() with patterns like 'prefix*', but more efficient
  
      Args:
          text (str): Text to examine
          prefixes (iterable): Collection of string prefixes (no wildcards)
  
      Returns:
          bool: True if the text starts with at least one of the given prefixes, False otherwise.
      """
      if not isinstance(text, str):
          return False
      return any(text.startswith(prefix) for prefix in prefixes)
  
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 2 for calling a global function with example usage: starts_with_any(text, prefixes) and returns: any, False