code: def data_from_bytes(self, byte_representation):
          
          text = byte_representation.decode(self.encoding)
          return self.data_from_string(text)
docs: Converts the given bytes representation to resource data.