code: def test_encoding_in_scripts_only(no_jupytext_version_number):
      """UTF encoding should not be added to markdown files"""
      nb = new_notebook(
          cells=[new_markdown_cell("α")],
          metadata={
              "encoding": "# -*- coding: utf-8 -*-",
              "kernelspec": {
                  "display_name": "Python 3",
                  "language": "python",
                  "name": "python3",
              },
          },
      )
  
      # Saving to and reading from py creates an encoding
      py_light = jupytext.writes(nb, "py:light")
      compare(
          py_light,
          """# -*- coding: utf-8 -*-
  # ---
  # jupyter:
  #   kernelspec:
  #     display_name: Python 3
  #     language: python
  #     name: python3
  # ---
  
  # α
  """,
      )
      nb = jupytext.reads(py_light, "py:light")
      assert "encoding" in nb.metadata["jupytext"]
  
      py_percent = jupytext.writes(nb, "py:percent")
      compare(
          py_percent,
          """# -*- coding: utf-8 -*-
  # ---
  # jupyter:
  #   kernelspec:
  #     display_name: Python 3
  #     language: python
  #     name: python3
  # ---
  
  # %% [markdown]
  # α
  """,
      )
  
      md = jupytext.writes(nb, "md")
      compare(
          md,
          """---
  jupyter:
    jupytext:
      encoding: '# -*- coding: utf-8 -*-'
    kernelspec:
      display_name: Python 3
      language: python
      name: python3
  ---
  
  α
  """,
      )
  
      rmd = jupytext.writes(nb, "Rmd")
      compare(
          rmd,
          """---
  jupyter:
    jupytext:
      encoding: '# -*- coding: utf-8 -*-'
    kernelspec:
      display_name: Python 3
      language: python
      name: python3
  ---
  
  α
  """,
      )
  
file_path: jupytext/tests/functional/others/test_unicode.py
imports: from nbformat.v4.nbbase import new_markdown_cell, new_notebook
  import jupytext
  from jupytext.compare import compare
label_desc: Use image node_id 5 for calling a global function with example usage: test_encoding_in_scripts_only(no_jupytext_version_number) without return types