code: def _regex_match_f(patterns):
      compiled = [re.compile(p) for p in patterns]
      return lambda path: any(
          (p.match(util.stdpath(path)) for p in compiled)
      )
  
imports: import fnmatch
  import glob
  import logging
  import os
  import re
  import shutil
  from guild import util
label_desc: Use image node_id 5 for calling the FileSelectRule obj's underlying member method code with example usage: obj._regex_match_f(patterns) and returns: function