code: def test_consume_gemm_wrong_dims(datadir):
      model = onnx.load(datadir.file("gemm.onnx"))
      parser = NetworkParser()
      parser.parse_network(model.graph, None, None)
      parser._nodes["Gemm_0"][1].input.append("abcd")
      with pytest.raises(ValueError) as excinfo:
          parser._consume_gemm_dense_nodes(
              parser._nodes["Gemm_0"][1], parser._nodes["Gemm_0"][2]
          )
      expected_msg_gemm = "Gemm_0 input has 4 dimensions, only nodes with 3 input dimensions can be used as starting points for consumption."
      assert str(excinfo.value) == expected_msg_gemm
  
file_path: OMLT/tests/io/test_onnx_parser.py
imports: import pytest
  from omlt.dependencies import onnx, onnx_available
label_desc: Use image node_id 13 for calling a global function with example usage: test_consume_gemm_wrong_dims(datadir) without return types