code: def test_base_path_in_tree_from_non_root_no_subfolder():
      nb_file = "/parent/notebooks/wrap_markdown.ipynb"
      formats = "notebooks///ipynb,scripts///py:percent"
      fmt = "notebooks///ipynb"
      assert base_path(nb_file, fmt) == "/parent///wrap_markdown"
      paired_paths(nb_file, fmt, formats)
  
imports: import os
  import unittest.mock
  import pytest
  import jupytext
  from jupytext.cli import jupytext
  from jupytext.compare import compare
  from jupytext.contentsmanager import TextFileContentsManager
  from jupytext.formats import long_form_multiple_formats, long_form_one_format, short_form_multiple_formats
  from jupytext.paired_paths import InconsistentPath, base_path, full_path, paired_paths
label_desc: Use image node_id 7 for calling a global function with example usage: test_base_path_in_tree_from_non_root_no_subfolder() without return types