<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_last_data(self, uuid, period=0, average_by=0):
 """ Get the data from one device for period till now. :param uuid: Id of the device :type uuid: str :param period: Number of seconds between start time of search and now :type period: integer :param average_by: amount of seconds to average data over. 0 or 300 for no average. Use 3600 (average hourly) or a multiple for long range requests (e.g. more than 1 day) :type average_by: integer :returns: list of datapoints :raises: ClientError, AuthFailure, BadFormat, ForbiddenAccess, TooManyRequests, InternalError .. note:: Use period = 0 and averageBy = 0 to get the very last data point. If you only need one average for a period, the average_by needs to be bigger than the period (eg, for a 10 minutes average: period = 600, average_by = 601) .. seealso:: :func:`parse_data` for return data syntax """

        return self.parse_data((yield from self._get(
            LAST_DATA_URL.format(uuid= uuid,
                period= trunc(period),
                average_by= trunc(average_by)))))