code: def set_prefix_and_suffix(fmt, formats, nb_file):
      """Add prefix and suffix information from jupytext.formats if format and path matches"""
      for alt_fmt in long_form_multiple_formats(formats):
          if alt_fmt["extension"] == fmt["extension"] and fmt.get(
              "format_name"
          ) == alt_fmt.get("format_name"):
              try:
                  base_path(nb_file, alt_fmt)
                  fmt.update(alt_fmt)
                  return
              except InconsistentPath:
                  continue
  
imports: import argparse
  import glob
  import json
  import os
  import re
  import shlex
  import subprocess
  import sys
  import warnings
  from copy import copy
  from tempfile import NamedTemporaryFile
  from .combine import combine_inputs_with_outputs
  from .compare import NotebookDifference, compare, test_round_trip_conversion
  from .config import load_jupytext_config, notebook_formats
  from .formats import _BINARY_FORMAT_OPTIONS, _VALID_FORMAT_OPTIONS, JUPYTEXT_FORMATS, check_auto_ext, check_file_version, long_form_multiple_formats, long_form_one_format, short_form_one_format
  from .header import recursive_update
  from .jupytext import create_prefix_dir, read, reads, write, writes
  from .kernels import find_kernel_specs, get_kernel_spec, kernelspec_from_language
  from .languages import _SCRIPT_EXTENSIONS
  from .paired_paths import InconsistentPath, base_path, find_base_path_and_format, full_path, paired_paths
  from .pairs import latest_inputs_and_outputs, read_pair, write_pair
  from .version import __version__
label_desc: Use image node_id 11 for calling a global function with example usage: set_prefix_and_suffix(fmt, formats, nb_file) without return types