code: def test_dict_md5():
      d = {
          "cmd": "python code.py foo file1",
          "locked": "true",
          "outs": [
              {
                  "path": "file1",
                  "metric": {"type": "raw"},
                  "cache": False,
                  "md5": "acbd18db4cc2f85cedef654fccc4a4d8",
              }
          ],
          "deps": [
              {
                  "path": "foo",
                  "md5": "acbd18db4cc2f85cedef654fccc4a4d8",
              },
              {
                  "path": "code.py",
                  "md5": "d05447644b89960913c7eee5fd776adb",
              },
          ],
      }
  
      md5 = "8b263fa05ede6c3145c164829be694b4"
  
      assert md5 == utils.dict_md5(d, exclude=["metric", "locked"])
  
imports: import re
  import pytest
  from dvc import utils
  from dvc.exceptions import DvcException
label_desc: Use image node_id 1 for calling a global function with example usage: test_dict_md5() without return types