code: def test_read_write_script_with_metadata_241(
      no_jupytext_version_number,
      pynb="""#!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  # ---
  # jupyter:
  #   jupytext:
  #     text_representation:
  #       extension: .py
  #       format_name: light
  #   kernelspec:
  #     display_name: Python 3
  #     language: python
  #     name: python3
  # ---
  
  a = 2
  
  a + 1
  """,
  ):
      nb = jupytext.reads(pynb, "py")
      assert "executable" in nb.metadata["jupytext"]
      assert "encoding" in nb.metadata["jupytext"]
      pynb2 = jupytext.writes(nb, "py")
  
      compare(pynb2, pynb)
  
imports: import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_raw_cell
  import jupytext
  from jupytext.compare import compare, compare_notebooks
label_desc: Use image node_id 23 for calling a global function with example usage: test_read_write_script_with_metadata_241(no_jupytext_version_number, pynb) without return types