<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def file_or_folder(path):
 """ Returns a File or Folder object that would represent the given path. """

        target = unicode(path)
        return Folder(target) if os.path.isdir(target) else File(target)