code: def end_table_header(self):
          r
  
          if self.header:
              msg = "Table already has a header"
              raise TableError(msg)
  
          self.header = True
  
          self.append(Command(r'endhead'))
docs: r"""End the table header which will appear on every page.