code: def test_read_mostly_py_markdown_file(
      markdown="""---
  title: Simple file
  ---
  
  ```python
  import numpy as np
  x = np.arange(0, 2*math.pi, eps)
  ```
  
  ```python
  x = np.arange(0,1,eps)
  y = np.abs(x)-.5
  ```
  
  This is
  a Markdown cell
  
  ```
  # followed by a code cell with no language info
  ```
  
  ```
  # another code cell
  
  
  # with two blank lines
  ```
  
  And the same markdown cell continues
  
  <!-- #raw -->
  this is a raw cell
  <!-- #endraw -->
  
  ```R
  ls()
  ```
  
  ```R
  cat(stringi::stri_rand_lipsum(3), sep='\n\n')
  ```
  """,
  ):
      nb = jupytext.reads(markdown, "md")
      assert nb.metadata["jupytext"]["main_language"] == "python"
      compare_cells(
          nb.cells,
          [
              new_raw_cell("---\ntitle: Simple file\n---"),
              new_code_cell(
                  "import numpy as np\n"
                  "x = np.arange(0, 2*math.pi, eps)"
              ),
              new_code_cell("x = np.arange(0,1,eps)\ny = np.abs(x)-.5"),
              new_markdown_cell(
                  """This is
  a Markdown cell
  
  ```
  # followed by a code cell with no language info
  ```
  
  ```
  # another code cell
  
  
  # with two blank lines
  ```
  
  And the same markdown cell continues"""
              ),
              new_raw_cell("this is a raw cell"),
              new_code_cell("%%R\nls()"),
              new_code_cell(
                  "%%R\ncat(stringi::"
                  "stri_rand_lipsum(3), sep='\n\n')"
              ),
          ],
          compare_ids=False,
      )
  
      markdown2 = jupytext.writes(nb, "md")
      compare(markdown2, markdown)
  
imports: from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_raw_cell
  import jupytext
  from jupytext.combine import combine_inputs_with_outputs
  from jupytext.compare import compare, compare_cells, compare_notebooks
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_mostly_py_markdown_file(markdown) without return types