code: def csv_data(tmpdir):
      path = Path(tmpdir) / "data.csv"
      path.write_text(get_csv_data())
      return path
  
file_path: lightning-flash/tests/text/question_answering/test_data.py
imports: import json
  import os
  from pathlib import Path
  import pandas
  import pytest
  from flash.core.utilities.imports import _TOPIC_TEXT_AVAILABLE
  from flash.text import QuestionAnsweringData
label_desc: Use image node_id 2 for calling a global function with example usage: csv_data(tmpdir) and returns: path