code: def test_read_write_script_with_metadata_241(
      no_jupytext_version_number,
      rsnb="""#!/usr/bin/env scriptisto
  // ---
  // jupyter:
  //   jupytext:
  //     text_representation:
  //       extension: .rs
  //       format_name: light
  //   kernelspec:
  //     display_name: Rust
  //     language: rust
  //     name: rust
  // ---
  
  let mut a: i32 = 2;
  a += 1;
  """,
  ):
      nb = jupytext.reads(rsnb, "rs")
      assert "executable" in nb.metadata["jupytext"]
      rsnb2 = jupytext.writes(nb, "rs")
  
      compare(rsnb, rsnb2)
  
imports: from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook
  import jupytext
  from jupytext.compare import compare, compare_notebooks
label_desc: Use image node_id 3 for calling a global function with example usage: test_read_write_script_with_metadata_241(no_jupytext_version_number, rsnb) without return types