code: def notebook_with_tags(python_notebook):
      nb = python_notebook
      nb.cells = [
          new_code_cell("1 + 1", metadata={"tags": ["tag1"]}),
          new_markdown_cell("some text", metadata={"tags": ["tag2"]}),
      ]
      return nb
  
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 1 for calling a global function with example usage: notebook_with_tags(python_notebook) and returns: nb