code: def test_string_to_dict_conversion(
      metadata_filter_string, metadata_filter_dict
  ):
      assert (
          metadata_filter_as_dict(metadata_filter_string)
          == metadata_filter_dict
      )
  
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 2 for calling a global function with example usage: test_string_to_dict_conversion(metadata_filter_string, metadata_filter_dict) without return types