docs: def dumps_tabledata(value, format_name="rst_grid_table", **kwargs):
      """
      :param tabledata.TableData value: Tabular data to dump.
      :param str format_name:
          Dumped format name of tabular data.
          Available formats are described in
          :py:meth:`~pytablewriter.TableWriterFactory.create_from_format_name`
  
      :Example:
          .. code:: python
  
              >>> dumps_tabledata(value)
              .. table:: sample_data
  
                  ======  ======  ======
                  attr_a  attr_b  attr_c
                  ======  ======  ======
                       1     4.0  a
                       2     2.1  bb
                       3   120.9  ccc
                  ======  ======  ======
      """
  
      from ._factory import TableWriterFactory
  
      if not value:
          raise TypeError("value must be a tabledata.TableData instance")
  
      writer = TableWriterFactory.create_from_format_name(format_name)
  
      for attr_name, attr_value in kwargs.items():
          setattr(writer, attr_name, attr_value)
  
      writer.from_tabledata(value)
  
      return writer.dumps()