code: def test_no_error_on_path_object(tmpdir):
      nb_file = Path(str(tmpdir.join("notebook.ipynb")))
      md_file = nb_file.with_suffix(".md")
      nbformat.write(
          new_notebook(cells=[new_markdown_cell("Some text")]),
          str(nb_file),
      )
  
      nb = jupytext.read(nb_file)
      jupytext.write(nb, md_file)
  
file_path: jupytext/tests/functional/others/test_read_write_functions.py
imports: from io import StringIO
  from pathlib import Path
  import nbformat
  from nbformat.v4.nbbase import new_markdown_cell, new_notebook
  import jupytext
  from jupytext.compare import compare, compare_notebooks
label_desc: Use image node_id 3 for calling a global function with example usage: test_no_error_on_path_object(tmpdir) without return types