code: def __init__(self, fil, rec, ignore, bf, sort):
      if isinstance(fil, py.builtin._basestring):
          fil = FNMatcher(fil)
      if isinstance(rec, py.builtin._basestring):
          self.rec = FNMatcher(rec)
      elif not hasattr(rec, "__call__") and rec:
          self.rec = lambda path: True
      else:
          self.rec = rec
      self.fil = fil
      self.ignore = ignore
      self.breadthfirst = bf
      self.optsort = sort and sorted or (lambda x: x)
  
imports: import warnings
  import os
  import sys
  import posixpath
  import fnmatch
  import py
label_desc: Use image node_id 1 to create a new Visitor object  with example: obj = Visitor(fil, rec, ignore, bf, sort)