code: def test_as_version_has_appropriate_type():
      with pytest.raises(TypeError):
          jupytext.read("script.py", "py:percent")
  
imports: import pytest
  import jupytext
  from jupytext.compare import compare_notebooks
label_desc: Use image node_id 1 for calling a global function with example usage: test_as_version_has_appropriate_type() without return types