<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def statistic_record(self, desc=True, timeout=3, is_async=False, only_read=True, *keys):
 """ Returns a list that each element is a dictionary of the statistic info of the cache item. """

        if len(keys) == 0:
            records = self._generate_statistic_records()
        else:
            records = self._generate_statistic_records_by_keys(keys)
        return sorted(records, key=lambda t: t['hit_counts'], reverse=desc)