code: def test_create_mirror_file_if_missing(
      tmpdir, no_jupytext_version_number
  ):
      py_file = str(tmpdir.join("notebook.py"))
      assert not os.path.isfile(py_file)
      create_mirror_file_if_missing(py_file, new_notebook(), "py")
      assert os.path.isfile(py_file)
  
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 1 for calling a global function with example usage: test_create_mirror_file_if_missing(tmpdir, no_jupytext_version_number) without return types