code: def test_fix_139():
      text = """# ---
  # jupyter:
  #   jupytext:
  #     metadata_filter:
  #       cells:
  #         additional:
  #           - "lines_to_next_cell"
  #         excluded:
  #           - "all"
  # ---
  
  # + {"lines_to_next_cell": 2}
  1 + 1
  # -
  
  
  1 + 1
  """
  
      nb = jupytext.reads(text, "py:light")
      text2 = jupytext.writes(nb, "py:light")
      assert "cell_metadata_filter: -all" in text2
      assert "lines_to_next_cell" not in text2
  
imports: import pytest
  from nbformat.v4.nbbase import new_notebook
  import jupytext
  from jupytext.compare import compare
  from jupytext.formats import JupytextFormatError, divine_format, get_format_implementation, guess_format, long_form_multiple_formats, read_format_from_metadata, rearrange_jupytext_metadata, short_form_multiple_formats, update_jupytext_formats_metadata, validate_one_format
label_desc: Use image node_id 22 for calling a global function with example usage: test_fix_139() without return types