code: def test_metadata_filter_user_plus_default():
      assert filter_metadata(
          to_dict(["technical", "user", "preserve"]),
          "-user",
          "-technical",
      ) == to_dict(["preserve"])
      assert filter_metadata(
          to_dict(["technical", "user", "preserve"]),
          "all,-user",
          "-technical",
      ) == to_dict(["preserve", "technical"])
      assert filter_metadata(
          to_dict(["technical", "user", "preserve"]),
          "user",
          "preserve,-all",
      ) == to_dict(["user", "preserve"])
  
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 5 for calling a global function with example usage: test_metadata_filter_user_plus_default() without return types