code: def test_update_metadata_filter(
      no_jupytext_version_number,
      org="""---
  jupyter:
    kernelspec:
      display_name: Python 3
      language: python
      name: python3
    extra:
      key: value
  ---
  """,
      target="""---
  jupyter:
    extra:
      key: value
    jupytext:
      notebook_metadata_filter: extra
    kernelspec:
      display_name: Python 3
      language: python
      name: python3
  ---
  """,
  ):
      nb = jupytext.reads(org, "md")
      text = jupytext.writes(nb, "md")
      compare(text, target)
  
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 33 for calling a global function with example usage: test_update_metadata_filter(no_jupytext_version_number, org, target) without return types