code: def test_notebook_with_magic_and_bash_cells(
      script="""# This is a test for issue #181
  
  # %load_ext line_profiler
  
  # !head -4 data/president_heights.csv
  """,
  ):
      notebook = jupytext.reads(script, "py")
      for cell in notebook.cells:
          lines = cell.source.splitlines()
          assert lines[0]
          assert lines[-1]
          assert not cell.metadata, cell.source
  
      script2 = jupytext.writes(notebook, "py")
  
      compare(script2, script)
  
imports: import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_raw_cell
  import jupytext
  from jupytext.compare import compare, compare_notebooks
label_desc: Use image node_id 27 for calling a global function with example usage: test_notebook_with_magic_and_bash_cells(script) without return types