code: def matches_any(text, patterns):
      """Check if the text matches any of the given wildcard patterns.
  
      For example, matches_any('abc', {'a*c'}) == True
      WARNING: This is relatively slow and should only be used for complex patterns that can't be
      expressed with contains_any(), starts_with_any(), or ends_with_any()
  
      Args:
          text (str): Text to examine
          patterns (iterable): Collection of string patterns, compatible with fnmatch (* wildcards)
  
      Returns:
          bool: True if the text matches at least one of the patterns, False otherwise.
      """
      if not isinstance(text, str):
          return False
      return any(fnmatch(text, pattern) for pattern in patterns)
  
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 5 for calling a global function with example usage: matches_any(text, patterns) and returns: any, False