def METHOD_NAME(self, name, func):
    """Store actions to be committed to the document.
    Parameters
    ----------
    name : str
        A string that indicates what is being committed.
    func : list of strings
        Each element of the list should be a Python command
        that will be executed.
    """
    self.commit_list.append((name, func))