code: def test_read_invalid_md_file_fails(invalid_md_file):
      with open(invalid_md_file) as fp:
          with pytest.raises(UnicodeDecodeError):
              read(fp)
  
file_path: jupytext/tests/functional/others/test_invalid_file.py
imports: from pathlib import Path
  import pytest
  from tornado.web import HTTPError
  from jupytext import TextFileContentsManager, read
  from jupytext.cli import jupytext
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_invalid_md_file_fails(invalid_md_file) without return types