docs: def write_table(self):
          """
          |write_table| with
          `TOML <https://github.com/toml-lang/toml>`__ format.
  
          :raises pytablewriter.EmptyTableNameError:
              If the |headers| is empty.
          :raises pytablewriter.EmptyHeaderError:
              If the |headers| is empty.
          :Example:
              :ref:`example-toml-table-writer`
          """
  
          import toml
  
          with self._logger:
              self._verify_property()
              self.stream.write(toml.dumps(self.tabledata.as_dict()))