code: def GetParentFileEntry(self):
      
      location = getattr(self.path_spec, 'location', None)
      if location is None:
        return None
  
      parent_location = self._file_system.DirnamePath(location)
      if parent_location is None:
        return None
  
      if parent_location == '':
        parent_location = self._file_system.PATH_SEPARATOR
  
      path_spec = fake_path_spec.FakePathSpec(location=parent_location)
      return self._file_system.GetFileEntryByPathSpec(path_spec)
docs: Retrieves the root file entry.
  
      Returns:
        FakeFileEntry: parent file entry or None if not available.