code: def test_code_in_markdown_block(
      rmd="""```{python}
  a = 1
  b = 2
  a + b
  ```
  
  ```python
  '''Code here goes to a Markdown cell'''
  
  
  '''even if we have two blank lines above'''
  ```
  
  ```{bash}
  ls -l
  ```
  """,
  ):
      nb = jupytext.reads(rmd, "Rmd")
      assert len(nb.cells) == 3
      assert nb.cells[0].cell_type == "code"
      assert nb.cells[0].source == "a = 1\nb = 2\na + b"
      assert nb.cells[1].cell_type == "markdown"
      assert (
          nb.cells[1].source
          == """```python
  '''Code here goes to a Markdown cell'''
  
  
  '''even if we have two blank lines above'''
  ```"""
      )
      assert nb.cells[2].cell_type == "code"
      assert nb.cells[2].source == "%%bash\nls -l"
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_code_in_markdown_block(rmd) without return types