code: def stat(self, entry_path, follow_symlinks=True):
          
          # stat should return the tuple representing return value of os.stat
          try:
              file_object = self.resolve(
                  entry_path, follow_symlinks, allow_fd=True)
              self.raise_for_filepath_ending_with_separator(
                  entry_path, file_object, follow_symlinks)
  
              return file_object.stat_result.copy()
          except IOError as io_error:
              winerror = (io_error.winerror if hasattr(io_error, 'winerror')
                          else io_error.errno)
              self.raise_os_error(io_error.errno, entry_path, winerror=winerror)
docs: Return the os.stat-like tuple for the FakeFile object of entry_path.
  
          Args:
              entry_path:  Path to filesystem object to retrieve.
              follow_symlinks: If False and entry_path points to a symlink,
                  the link itself is inspected instead of the linked object.
  
          Returns:
              The FakeStatResult object corresponding to entry_path.
  
          Raises:
              OSError: if the filesystem object doesn't exist.