code: def test_line_endings(tmp_path):
      """Test line endings of mne-python."""
      tempdir = str(tmp_path)
      with open(op.join(tempdir, "foo"), "wb") as fid:
          fid.write("bad\r\ngood\n".encode("ascii"))
      _assert_line_endings(tempdir)
      with open(op.join(tempdir, "bad.py"), "wb") as fid:
          fid.write(b"\x97")
      pytest.raises(AssertionError, _assert_line_endings, tempdir)
      with open(op.join(tempdir, "bad.py"), "wb") as fid:
          fid.write("bad\r\ngood\n".encode("ascii"))
      pytest.raises(AssertionError, _assert_line_endings, tempdir)
      # now check mne
      _assert_line_endings(_get_root_dir())
  
imports: import os
  import sys
  from os import path
  import pytest
  from mne.utils import _get_root_dir
label_desc: Use image node_id 2 for calling a global function with example usage: test_line_endings(tmp_path) without return types