code: def formats_with_support_for_cell_metadata():
      for fmt in JUPYTEXT_FORMATS:
          if fmt.format_name == "myst" and not is_myst_available():
              continue
          if fmt.format_name == "pandoc" and not is_pandoc_available():
              continue
          if fmt.format_name not in [
              "sphinx",
              "nomarker",
              "spin",
              "quarto",
          ]:
              yield f"{fmt.extension[1:]}:{fmt.format_name}"
  
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 18 for calling a global function with example usage: formats_with_support_for_cell_metadata() without return types