code: def test_read_file_with_explicit_fmt(tmpdir):
      tmp_py = str(tmpdir.join("notebook.py"))
  
      with open(tmp_py, "w") as fp:
          fp.write(
              """# %%
  1 + 1
  """
          )
  
      nb1 = jupytext.read(tmp_py)
      nb2 = jupytext.read(tmp_py, fmt="py:percent")
  
      compare_notebooks(nb2, nb1)
  
imports: import pytest
  import jupytext
  from jupytext.compare import compare_notebooks
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_file_with_explicit_fmt(tmpdir) without return types