code: def GetFileEntryByPath(self, path):
      
      if path is None:
        return None
  
      file_entry_type, _ = self._paths.get(path, (None, None))
      if not file_entry_type:
        return None
  
      path_spec = fake_path_spec.FakePathSpec(location=path)
      return fake_file_entry.FakeFileEntry(
          self._resolver_context, self, path_spec,
          file_entry_type=file_entry_type)
docs: Retrieves a file entry for a path.
  
      Args:
        path (str): path of the file entry.
  
      Returns:
        FakeFileEntry: a file entry or None if not available.