code: def test_tags_in_rmd(
      rmd="""---
  jupyter:
    jupytext:
      text_representation:
        extension: .Rmd
        format_name: rmarkdown
        format_version: '1.1'
        jupytext_version: 1.2.3
  ---
  
  ```{python tags=c("parameters")}
  p = 1
  ```
  """,
      nb=new_notebook(
          cells=[
              new_code_cell("p = 1", metadata={"tags": ["parameters"]})
          ]
      ),
  ):
      nb2 = jupytext.reads(rmd, "Rmd")
      compare_notebooks(nb2, nb)
  
imports: import re
  from time import sleep
  import nbformat
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_raw_cell
  import jupytext
  from jupytext.cli import jupytext
  from jupytext.compare import compare, compare_cells, compare_notebooks
label_desc: Use image node_id 4 for calling a global function with example usage: test_tags_in_rmd(rmd, nb) without return types