code: def test_ipynb_to_percent_to_light(ipynb_file):
      nb = jupytext.read(ipynb_file)
      pct = jupytext.writes(nb, "auto:percent")
      auto_ext = auto_ext_from_metadata(nb.metadata)
      comment = _SCRIPT_EXTENSIONS[auto_ext]["comment"]
      lgt = (
          pct.replace(comment + " %%\n", comment + " +\n")
          .replace(comment + " %% ", comment + " + ")
          .replace(
              comment + "       format_name: percent",
              comment + "       format_name: light",
          )
      )
      nb2 = jupytext.reads(lgt, auto_ext)
      compare_notebooks(nb2, nb)
  
imports: import os
  import re
  import pytest
  from nbformat.v4.nbbase import new_notebook
  import jupytext
  from jupytext.compare import assert_conversion_same_as_mirror, compare_notebooks, create_mirror_file_if_missing
  from jupytext.formats import auto_ext_from_metadata
  from jupytext.languages import _SCRIPT_EXTENSIONS
label_desc: Use image node_id 13 for calling a global function with example usage: test_ipynb_to_percent_to_light(ipynb_file) without return types