code: def test_read_write_script(
      ext,
      rnb="""#!/usr/bin/env Rscript
  # coding=utf-8
  print('Hello world')
  """,
  ):
      nb = jupytext.reads(rnb, ext)
      rnb2 = jupytext.writes(nb, ext)
      compare(rnb2, rnb)
  
file_path: jupytext/tests/functional/simple_notebooks/test_read_simple_R.py
imports: import pytest
  import jupytext
  from jupytext.compare import compare
label_desc: Use image node_id 4 for calling a global function with example usage: test_read_write_script(ext, rnb) without return types