code: def _patterns_match_f(self, patterns, regex):
      if regex:
          return self._regex_match_f(patterns)
      return self._fnmatch_f(patterns)
  
imports: import fnmatch
  import glob
  import logging
  import os
  import re
  import shutil
  from guild import util
label_desc: Use image node_id 4 for calling the FileSelectRule obj's underlying member method code with example usage: obj._patterns_match_f(patterns, regex) and returns: self, self