<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_file(cls, filepath):
 """Decodes bencoded data of a given file. Returns decoded structure(s). :param str filepath: :rtype: list """

        with open(filepath, mode='rb') as f:
            contents = f.read()
        return cls.decode(contents)