code: def test_group_definitions_by_id():
      definitions = {
          "config1": {
              "data": {"plot1": "definition1", "plot2": "definition2"}
          },
          "config2": {"data": {"plot1": "definition1"}},
      }
      assert group_definitions_by_id(definitions) == {
          "config1::plot1": ("plot1", "definition1"),
          "config2::plot1": ("plot1", "definition1"),
          "plot2": ("plot2", "definition2"),
      }
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_group_definitions_by_id() without return types