code: def test_pat017_patch_clear():
      p = Patch()
  
      p.clear()
      data = patch_to_dict(p)
      assert data["operations"][0] == {
          "operation": "Clear",
          "location": [],
          "params": {},
      }
  
imports: import json
  import pytest
  from dash import Patch
  from dash._utils import to_json
label_desc: Use image node_id 18 for calling a global function with example usage: test_pat017_patch_clear() without return types