code: def _run_test_for_invalid_separator(filepath, delimiter_name):
      if delimiter_name not in ("tab", "comma"):
          with pytest.raises(
              ValueError,
              match="The values in the events file are not separated by tabs",
          ):
              _check_events_file_uses_tab_separators(
                  events_files=filepath
              )
      else:
          result = _check_events_file_uses_tab_separators(
              events_files=filepath
          )
          assert result is None
  
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 3 for calling a global function with example usage: _run_test_for_invalid_separator(filepath, delimiter_name) without return types