<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def end_table_last_footer(self):
 r"""End the table foot which will appear on the last page."""


        if self.lastFoot:
            msg = "Table already has a last foot"
            raise TableError(msg)

        self.lastFoot = True

        self.append(Command('endlastfoot'))