code: def test_to_dict(self):
      document = Document(
          dataframe=DataFrame(
              {"col1": [1, 2], "col2": [3, 4], "col3": [5, 42]}
          )
      )
      answer = ExtractedTableAnswer(
          data="42",
          query="What is the answer?",
          document=document,
          context=DataFrame({"col3": [5, 42]}),
          score=1.0,
          document_cells=[ExtractedTableAnswer.Cell(1, 2)],
          context_cells=[ExtractedTableAnswer.Cell(1, 0)],
          meta={"meta_key": "meta_value"},
      )
  
      assert answer.to_dict() == {
          "type": "haystack.dataclasses.answer.ExtractedTableAnswer",
          "init_parameters": {
              "data": "42",
              "query": "What is the answer?",
              "document": document.to_dict(flatten=False),
              "context": DataFrame({"col3": [5, 42]}).to_json(),
              "score": 1.0,
              "document_cells": [{"row": 1, "column": 2}],
              "context_cells": [{"row": 1, "column": 0}],
              "meta": {"meta_key": "meta_value"},
          },
      }
  
file_path: haystack/test/dataclasses/test_answer.py
imports: from pandas import DataFrame
  from haystack.dataclasses.answer import Answer, ExtractedAnswer, ExtractedTableAnswer, GeneratedAnswer
  from haystack.dataclasses.document import Document
label_desc: Use image node_id 3 for calling the TestExtractedTableAnswer obj's underlying member method code with example usage: obj.test_to_dict() without return types