code: def _fn_matches(fn, glob):
      """Return whether the supplied file name fn matches pattern filename."""
      if glob not in _pattern_cache:
          pattern = _pattern_cache[glob] = re.compile(
              fnmatch.translate(glob)
          )
          return pattern.match(fn)
      return _pattern_cache[glob].match(fn)
  
file_path: catboost/contrib/python/Pygments/py2/pygments/formatters/__init__.py
imports: import re
  import sys
  import types
  import fnmatch
  from os.path import basename
  from pygments.formatters._mapping import FORMATTERS
  from pygments.plugin import find_plugin_formatters
  from pygments.util import ClassNotFound, itervalues
label_desc: Use image node_id 1 for calling a global function with example usage: _fn_matches(fn, glob) and returns: _pattern_cache, pattern