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