code: def dumps(data):  # type: (_TOMLDocument) -> str
      
      if not isinstance(data, _TOMLDocument) and isinstance(data, dict):
          data = item(data)
  
      return data.as_string()
docs: Dumps a TOMLDocument into a string.