code: def test_for_invalid_separator(tmp_path):
      data_for_temp_datafile, delimiters = make_data_for_test_runs()
      for delimiter_name, delimiter_char in delimiters.items():
          temp_tsv_file = (
              tmp_path / f"tempfile.{delimiter_name} separated values"
          )
          _create_test_file(
              temp_csv=temp_tsv_file,
              test_data=data_for_temp_datafile,
              delimiter=delimiter_char,
          )
          _run_test_for_invalid_separator(
              filepath=temp_tsv_file, delimiter_name=delimiter_name
          )
  
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 4 for calling a global function with example usage: test_for_invalid_separator(tmp_path) without return types