code: def test_pat010_patch_merge():
      p = Patch()
      p.update({"merge": "merged"})
  
      p["merge"] |= {"ior": "iored"}
      data = patch_to_dict(p)
  
      assert data["operations"][0] == {
          "operation": "Merge",
          "location": [],
          "params": {"value": {"merge": "merged"}},
      }
      assert data["operations"][1] == {
          "operation": "Merge",
          "location": ["merge"],
          "params": {"value": {"ior": "iored"}},
      }
  
imports: import json
  import pytest
  from dash import Patch
  from dash._utils import to_json
label_desc: Use image node_id 11 for calling a global function with example usage: test_pat010_patch_merge() without return types