<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, filename, sr=22050):
 """ Loads an audiofile, uses sr=22050 by default. """

        y, sr = librosa.load(filename, sr=sr)
        return cls(y, sr)