code: def test_paired_path_with_prefix(
      nb_file="scripts/test.py",
      fmt={"extension": ".py", "format_name": "percent"},
      formats=[
          {"extension": ".ipynb"},
          {
              "prefix": "scripts/",
              "format_name": "percent",
              "extension": ".py",
          },
      ],
  ):
      assert paired_paths(nb_file, fmt, formats) == [
          ("test.ipynb", {"extension": ".ipynb"}),
          (
              "scripts/test.py",
              {
                  "prefix": "scripts/",
                  "format_name": "percent",
                  "extension": ".py",
              },
          ),
      ]
  
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 20 for calling a global function with example usage: test_paired_path_with_prefix(nb_file, fmt, formats) without return types