code: def test_bibliography_in_rmd(
      rmd="""Issue #1161
  
  The bibliography section below should not
  become a code cell
  
  ```{bibliography}
  ```
  
  ```{r}
  6
  ```
  """,
  ):
      nb = jupytext.reads(rmd, fmt="Rmd")
      assert len(nb.cells) == 2, nb.cells
      assert nb.cells[0].cell_type == "markdown"
      assert nb.cells[1].cell_type == "code"
      assert nb.cells[1].source == "6"
      rmd2 = jupytext.writes(nb, fmt="Rmd")
      compare(rmd2, rmd)
  
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 13 for calling a global function with example usage: test_bibliography_in_rmd(rmd) without return types