code: def test_default_config_has_priority_over_current_metadata(
      tmpdir,
      text="""# %% some_metadata_key=5
  1 + 1
  """,
  ):
      py_file = tmpdir.join("notebook.py")
      py_file.write(text)
  
      cfg_file = tmpdir.join("jupytext.toml")
      cfg_file.write(
          """cell_metadata_filter = "-some_metadata_key"
  """
      )
  
      jupytext_cli([str(py_file), "--to", "py"])
      assert (
          py_file.read()
          == """# %%
  1 + 1
  """
      )
  
imports: from copy import deepcopy
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_notebook
  from jupytext import reads, writes
  from jupytext.cli import jupytext
  from jupytext.compare import compare, compare_notebooks
  from jupytext.metadata_filter import filter_metadata, metadata_filter_as_dict
label_desc: Use image node_id 13 for calling a global function with example usage: test_default_config_has_priority_over_current_metadata(tmpdir, text) without return types