code: def dir():
          
          dir = [
              'abspath', 'dirname', 'exists', 'expanduser', 'getatime',
              'getctime', 'getmtime', 'getsize', 'isabs', 'isdir', 'isfile',
              'islink', 'ismount', 'join', 'lexists', 'normcase', 'normpath',
              'realpath', 'relpath', 'split', 'splitdrive'
          ]
          if IS_PY2:
              dir.append('walk')
          if sys.platform != 'win32' or not IS_PY2:
              dir.append('samefile')
          return dir
docs: Return the list of patched function names. Used for patching
          functions imported from the module.