<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def can_share_folder(self, user, folder):
 """ Return True if `user` can share `folder`. """

        return folder.parent_id is None and folder.author_id == user.id