code: def test_conv_incorrect_shapes():
      input = C.input_variable(())
      with pytest.raises(ValueError):
          h = C.layers.Convolution(
              filter_shape=(5, 5),
              num_filters=8,
              strides=(1, 1),
              pad=True,
          )(input)
      with pytest.raises(ValueError):
          h = C.layers.MaxPooling(filter_shape=(2, 2), strides=(2, 2))(
              input
          )
  
      input = C.input_variable(28)
      with pytest.raises(ValueError):
          h = C.layers.Convolution(
              filter_shape=(5, 5),
              num_filters=8,
              strides=(1, 1),
              pad=True,
          )(input)
      with pytest.raises(ValueError):
          h = C.layers.MaxPooling(filter_shape=(2, 2), strides=(2, 2))(
              input
          )
  
imports: from __future__ import division
  import numpy
  import pytest
  import cntk
  from .ops_test_utils import unittest_helper, _test_unary_op, AA, precision, PRECISION_TO_TYPE, constant, cntk_device
  from cntk.ops import AVG_POOLING, MAX_POOLING, MAX_UNPOOLING
  from cntk.internal import sanitize_dtype_cntk
  from cntk.cntk_py import should_force_deterministic_algorithms
label_desc: Use image node_id 17 for calling a global function with example usage: test_conv_incorrect_shapes() without return types