code: def test_magics_commented_default(fmt, commented):
      nb = new_notebook(cells=[new_code_cell("%pylab inline")])
  
      text = jupytext.writes(nb, fmt)
      assert ("%pylab inline" in text.splitlines()) != commented
      nb2 = jupytext.reads(text, fmt)
  
      if "sphinx" in fmt:
          nb2.cells = nb2.cells[1:]
  
      compare_notebooks(nb2, nb)
  
imports: import pytest
  from nbformat.v4.nbbase import new_code_cell, new_notebook
  import jupytext
  from jupytext.compare import compare, compare_notebooks, notebook_model
  from jupytext.magics import _PYTHON_MAGIC_ASSIGN, comment_magic, is_magic, uncomment_magic, unesc
label_desc: Use image node_id 7 for calling a global function with example usage: test_magics_commented_default(fmt, commented) without return types