code: def test_matrix_key_present(tmp_dir, dvc, matrix):
      (tmp_dir / "params.yaml").dump(MATRIX_DATA)
      resolver = DataResolver(dvc, tmp_dir.fs_path, {})
      data = {
          "matrix": matrix,
          "cmd": "echo ${key}",
      }
      definition = MatrixDefinition(
          resolver, resolver.context, "build", data
      )
  
      assert definition.resolve_all() == {
          "build@win-3.7-dict0-list0": {
              "cmd": "echo win-3.7-dict0-list0"
          },
          "build@win-3.7-dict0-list1": {
              "cmd": "echo win-3.7-dict0-list1"
          },
          "build@win-3.7-dict1-list0": {
              "cmd": "echo win-3.7-dict1-list0"
          },
          "build@win-3.7-dict1-list1": {
              "cmd": "echo win-3.7-dict1-list1"
          },
          "build@win-3.8-dict0-list0": {
              "cmd": "echo win-3.8-dict0-list0"
          },
          "build@win-3.8-dict0-list1": {
              "cmd": "echo win-3.8-dict0-list1"
          },
          "build@win-3.8-dict1-list0": {
              "cmd": "echo win-3.8-dict1-list0"
          },
          "build@win-3.8-dict1-list1": {
              "cmd": "echo win-3.8-dict1-list1"
          },
          "build@linux-3.7-dict0-list0": {
              "cmd": "echo linux-3.7-dict0-list0"
          },
          "build@linux-3.7-dict0-list1": {
              "cmd": "echo linux-3.7-dict0-list1"
          },
          "build@linux-3.7-dict1-list0": {
              "cmd": "echo linux-3.7-dict1-list0"
          },
          "build@linux-3.7-dict1-list1": {
              "cmd": "echo linux-3.7-dict1-list1"
          },
          "build@linux-3.8-dict0-list0": {
              "cmd": "echo linux-3.8-dict0-list0"
          },
          "build@linux-3.8-dict0-list1": {
              "cmd": "echo linux-3.8-dict0-list1"
          },
          "build@linux-3.8-dict1-list0": {
              "cmd": "echo linux-3.8-dict1-list0"
          },
          "build@linux-3.8-dict1-list1": {
              "cmd": "echo linux-3.8-dict1-list1"
          },
      }
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_matrix_key_present(tmp_dir, dvc, matrix) without return types