code: def samefile(path1, path2, user=None):
      
      def tr(p):
          return abspath(normpath(realpath(p)), user=user)
      return tr(path1) == tr(path2)
docs: Return :obj:`True` if both path arguments refer to the same path.