<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_table(self):
 """ |write_table| with Markdown table format. :raises pytablewriter.EmptyHeaderError: If the |headers| is empty. :Example: :ref:`example-markdown-table-writer` .. note:: - |None| values are written as an empty string - Vertical bar characters (``'|'``) in table items are escaped """


        with self._logger:
            self._verify_property()
            self.__write_chapter()
            self._write_table()
            if self.is_write_null_line_after_table:
                self.write_null_line()