code: def test_finalize(style_d, expected):
      assert style.finalize(style_d) == expected
      # Double check we are updating in-place
      assert style_d == expected
  
imports: import pytest
  from cartopy.mpl import style
label_desc: Use image node_id 3 for calling a global function with example usage: test_finalize(style_d, expected) without return types