code: def set_data(self, data=None, **kwargs):
          '''
          Read data into memory, applying all actions in queue.
          Additionally, update queue and history.
          '''
          if data is None:
              data = self.get_data(**kwargs)
          setattr(self, '_data', data)
          self.history += self.queue
          self.queue = [f set_data(self, data=None, **kwargs):
          '''
          Read data into memory, applying all actions in queue.
          Additionally, update queue and history.
          '''
          if data is None:
              data = self.get_data(**kwargs)
          setattr(self, '_data', data)
          self.history += self.queue
          self.queue = []
docs: Read data into memory, applying all actions in queue.
          Additionally, update queue and history.