<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def data_from_bytes(self, byte_representation):
 """ Converts the given bytes representation to resource data. """

        text = byte_representation.decode(self.encoding)
        return self.data_from_string(text)