code: def _build_filter(*patterns):
          
          return lambda name: any(fnmatchcase(name, pat=pat) for pat in patterns)
docs: Given a list of patterns, return a callable that will be true only if
          the input matches at least one of the patterns.