code: def test_from_dict(self):
      answer = ExtractedTableAnswer.from_dict(
          {
              "type": "haystack.dataclasses.answer.ExtractedTableAnswer",
              "init_parameters": {
                  "data": "42",
                  "query": "What is the answer?",
                  "document": {
                      "id": "3b13a0d56a3697e27a874fcb621911c83c59388dec213909e9e40d5d9f0affed",
                      "dataframe": '{"col1":{"0":1,"1":2},"col2":{"0":3,"1":4},"col3":{"0":5,"1":42}}',
                  },
                  "context": '{"col3":{"0":5,"1":42}}',
                  "score": 1.0,
                  "document_cells": [{"row": 1, "column": 2}],
                  "context_cells": [{"row": 1, "column": 0}],
                  "meta": {"meta_key": "meta_value"},
              },
          }
      )
      assert answer.data == "42"
      assert answer.query == "What is the answer?"
      assert answer.document == Document(
          id="3b13a0d56a3697e27a874fcb621911c83c59388dec213909e9e40d5d9f0affed",
          dataframe=DataFrame(
              {"col1": [1, 2], "col2": [3, 4], "col3": [5, 42]}
          ),
      )
      assert answer.context.equals(DataFrame({"col3": [5, 42]}))
      assert answer.score == 1.0
      assert answer.document_cells == [ExtractedTableAnswer.Cell(1, 2)]
      assert answer.context_cells == [ExtractedTableAnswer.Cell(1, 0)]
      assert answer.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 4 for calling the TestExtractedTableAnswer obj's underlying member method code with example usage: obj.test_from_dict() without return types