code: def test_tags_are_preserved(
      notebook_with_tags, fmt_with_cell_metadata
  ):
      text = writes(notebook_with_tags, fmt_with_cell_metadata)
      nb = reads(text, fmt_with_cell_metadata)
      assert nb.cells[0]["metadata"]["tags"] == ["tag1"]
      assert nb.cells[1]["metadata"]["tags"] == ["tag2"]
  
imports: import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell
  from jupytext import reads, writes
  from jupytext.formats import formats_with_support_for_cell_metadata, is_myst_available
label_desc: Use image node_id 3 for calling a global function with example usage: test_tags_are_preserved(notebook_with_tags, fmt_with_cell_metadata) without return types