code: def paired_paths(main_path, fmt, formats):
      """Return the list of paired notebooks, given main path, and the list of formats"""
      if not formats:
          return [
              (main_path, {"extension": os.path.splitext(main_path)[1]})
          ]
  
      formats = long_form_multiple_formats(formats)
  
      # Is there a format that matches the main path?
      base = base_path(main_path, fmt, formats)
      paths = [full_path(base, f) for f in formats]
  
      if main_path not in paths:
          raise InconsistentPath(
              "Paired paths '{}' do not include the current notebook path '{}'. "
              "Current format is '{}', and paired formats are '{}'.".format(
                  "','".join(paths),
                  main_path,
                  short_form_one_format(fmt),
                  short_form_multiple_formats(formats),
              )
          )
  
      if len(paths) > len(set(paths)):
          raise InconsistentPath(
              "Duplicate paired paths for this notebook. Please fix jupytext.formats."
          )
  
      return list(zip(paths, formats))
  
file_path: jupytext/src/jupytext/paired_paths.py
imports: import os
  from .config import find_jupytext_configuration_file
  from .formats import NOTEBOOK_EXTENSIONS, long_form_multiple_formats, long_form_one_format, short_form_multiple_formats, short_form_one_format
label_desc: Use image node_id 7 for calling a global function with example usage: paired_paths(main_path, fmt, formats) and returns: list, list