code: def get_average_record(self, n):
          
          history_deque = collections.deque()
          averages = []
          for d in self.data_points:
              history_deque.appendleft(d)
              if len(history_deque) > n:
                  history_deque.pop()
              avg = sum(history_deque) / len(history_deque)
              averages.append(round(avg, self.lr))
          return averages
docs: Returns a list of average current numbers, each representing the
          average over the last n data points.
  
          Args:
              n: Number of data points to average over.
  
          Returns:
              A list of average current values.