code: def test_file_writer_df():
      datastore = get_ready_ds()
      FileWriter(
          "my_data", store_key="transformed_data", apply_func=to_pandas
      ).transform(datastore)
      assert datastore["my_data"] == DATA
      assert (
          datastore["transformed_data"].to_dict()
          == to_pandas(DATA).to_dict()
      )
  
file_path: popmon/tests/popmon/io/test_file_writer.py
imports: import copy
  import json
  import pandas
  import pytest
  from popmon.io import FileWriter
label_desc: Use image node_id 7 for calling a global function with example usage: test_file_writer_df() without return types