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