<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_file(cls, filepath):
 """Alternative constructor to get Torrent object from file. :param str filepath: :rtype: Torrent """

        torrent = cls(Bencode.read_file(filepath))
        torrent._filepath = filepath
        return torrent