code: def test_file_is_generated():
      """User passes good python file. Check notebook file is created"""
  
      python_to_jupyter_cli(["examples/plot_quantum.py"])
      assert os.path.isfile("examples/plot_quantum.ipynb")
      os.remove("examples/plot_quantum.ipynb")
  
file_path: tensorly/doc/sphinx_ext/sphinx_gallery/tests/test_notebook.py
imports: from __future__ import division, absolute_import, print_function
  import json
  import tempfile
  import os
  import pytest
  import sphinx_gallery.gen_rst
  from sphinx_gallery.notebook import rst2md, jupyter_notebook, save_notebook, python_to_jupyter_cli
label_desc: Use image node_id 6 for calling a global function with example usage: test_file_is_generated() without return types