class_docstr: Exclude previously-seen dirs from walk results,
  avoiding infinite recursion.
  Ref https://bugs.python.org/issue44497.
class_docstr_tok: ["Exclude","previously-seen","dirs","from","walk","results",",","avoiding","infinite","recursion",".","Ref","https",":","\/\/bugs.python.org\/issue44497","."]
code: def filter(cls, items):
      return filter(cls(), items)
  
imports: import os
  import re
  import fnmatch
  import functools
  from .util import convert_path
  from .errors import DistutilsTemplateError, DistutilsInternalError
  from ._log import log
label_desc: Use image node_id 2 for calling the _UniqueDirs obj's underlying member method code with example usage: obj.filter(cls, items) and returns: filter