code: def test_consume_conv_wrong_dims(datadir):
      model = onnx.load(datadir.file("convx1_gemmx1.onnx"))
      parser = NetworkParser()
      parser.parse_network(model.graph, None, None)
      parser._nodes["Conv_0"][1].input.append("abcd")
      with pytest.raises(ValueError) as excinfo:
          parser._consume_conv_nodes(
              parser._nodes["Conv_0"][1], parser._nodes["Conv_0"][2]
          )
      expected_msg_conv = "Conv_0 input has 4 dimensions, only nodes with 2 or 3 input dimensions can be used as starting points for consumption."
      assert str(excinfo.value) == expected_msg_conv
  
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 14 for calling a global function with example usage: test_consume_conv_wrong_dims(datadir) without return types