code: def Scanner(function, *args, **kw):
      
      if SCons.Util.is_Dict(function):
          return Selector(function, *args, **kw)
      else:
          return Base(function, *args, **kw)
docs: Public interface factory function for creating different types
      of Scanners based on the different types of "functions" that may
      be supplied.
  
      TODO:  Deprecate this some day.  We've moved the functionality
      inside the Base class and really don't need this factory function
      any more.  It was, however, used by some of our Tool modules, so
      the call probably ended up in various people's custom modules
      patterned on SCons code.