code: def _create_test_file(temp_csv, test_data, delimiter):
      test_data = pd.DataFrame(test_data)
      test_data.to_csv(temp_csv, sep=delimiter)
  
file_path: nilearn/nilearn/glm/tests/test_check_events_file_uses_tab_separators.py
imports: import pandas
  import pytest
  from nilearn.glm.first_level.first_level import _check_events_file_uses_tab_separators
label_desc: Use image node_id 2 for calling a global function with example usage: _create_test_file(temp_csv, test_data, delimiter) without return types