code: def long_form_multiple_formats(
      jupytext_formats,
      metadata=None,
      auto_ext_requires_language_info=True,
  ):
      """Convert a concise encoding of jupytext.formats to a list of formats, encoded as dictionaries"""
      if not jupytext_formats:
          return []
  
      if not isinstance(jupytext_formats, list):
          jupytext_formats = [
              fmt for fmt in jupytext_formats.split(",") if fmt
          ]
  
      jupytext_formats = [
          long_form_one_format(
              fmt,
              metadata,
              auto_ext_requires_language_info=auto_ext_requires_language_info,
          )
          for fmt in jupytext_formats
      ]
  
      if not auto_ext_requires_language_info:
          jupytext_formats = [
              fmt
              for fmt in jupytext_formats
              if fmt["extension"] != ".auto"
          ]
  
      return jupytext_formats
  
imports: import os
  import re
  import warnings
  import nbformat
  import yaml
  from .cell_reader import DoublePercentScriptCellReader, HydrogenCellReader, LightScriptCellReader, MarkdownCellReader, RMarkdownCellReader, RScriptCellReader, SphinxGalleryScriptCellReader
  from .cell_to_text import BareScriptCellExporter, DoublePercentCellExporter, HydrogenCellExporter, LightScriptCellExporter, MarkdownCellExporter, RMarkdownCellExporter, RScriptCellExporter, SphinxGalleryCellExporter
  from .header import header_to_metadata_and_cell, insert_or_test_version_number
  from .languages import _COMMENT_CHARS, _SCRIPT_EXTENSIONS, same_language
  from .magics import is_magic
  from .metadata_filter import metadata_filter_as_string
  from .myst import MYST_FORMAT_NAME, is_myst_available, matches_mystnb, myst_extensions, myst_version
  from .pandoc import is_pandoc_available, pandoc_version
  from .stringparser import StringParser
  from .version import __version__
label_desc: Use image node_id 12 for calling a global function with example usage: long_form_multiple_formats(jupytext_formats, metadata, auto_ext_requires_language_info) and returns: jupytext_formats, list