code: def exclusion_from_globs(exclusions_path):
      with open(exclusions_path, "r") as exclusions_fd:
          exclusions = [e.strip() for e in exclusions_fd]
          return lambda path: any(
              [fnmatch.fnmatch(path, e) for e in exclusions]
          )
  
file_path: arrow/dev/archery/archery/utils/rat.py
imports: import fnmatch
  import re
  from xml.etree import ElementTree
  from ..lang.java import Jar
  from .cache import Cache
  from .command import capture_stdout
label_desc: Use image node_id 1 for calling a global function with example usage: exclusion_from_globs(exclusions_path) and returns: function