<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def FromStream(cls, stream, auto_transfer=True, total_size=None, **kwds):
 """Create a new Download object from a stream."""

        return cls(stream, auto_transfer=auto_transfer, total_size=total_size,
                   **kwds)