<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_sbv(cls, file):
 """Reads captions from a file in YouTube SBV format."""

        parser = SBVParser().read(file)
        return cls(file=file, captions=parser.captions)