code: def test_prefix_and_suffix():
      short_formats = (
          "notebook_folder/notebook_prefix_/_notebook_suffix.ipynb,"
          "script_folder//_in_percent_format.py:percent,"
          "script_folder//_in_light_format.py"
      )
  
      formats = long_form_multiple_formats(short_formats)
      assert short_form_multiple_formats(formats) == short_formats
  
      expected_paths = [
          "parent/notebook_folder/notebook_prefix_NOTEBOOK_NAME_notebook_suffix.ipynb",
          "parent/script_folder/NOTEBOOK_NAME_in_percent_format.py",
          "parent/script_folder/NOTEBOOK_NAME_in_light_format.py",
      ]
      for fmt, path in zip(formats, expected_paths):
          compare(
              paired_paths(path, fmt, formats),
              list(zip(expected_paths, formats)),
          )
  
      # without the parent folder
      expected_paths = [path[7:] for path in expected_paths]
      for fmt, path in zip(formats, expected_paths):
          compare(
              paired_paths(path, fmt, formats),
              list(zip(expected_paths, formats)),
          )
  
      # Not the expected parent folder
      with pytest.raises(InconsistentPath):
          paired_paths(
              "script_folder_incorrect/NOTEBOOK_NAME_in_percent_format.py",
              formats[1],
              formats,
          )
  
      # Not the expected suffix
      with pytest.raises(InconsistentPath):
          paired_paths(
              "parent/script_folder/NOTEBOOK_NAME_in_LIGHT_format.py",
              formats[2],
              formats,
          )
  
      # Not the expected extension
      with pytest.raises(InconsistentPath):
          paired_paths(
              "notebook_folder/notebook_prefix_NOTEBOOK_NAME_notebook_suffix.py",
              formats[0],
              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 16 for calling a global function with example usage: test_prefix_and_suffix() without return types