code: def test_constant_shape_inf():
      shape = (-1, 4)
      c = constant(value=2, shape=shape)
      assert np.allclose(c.shape, shape)
      with pytest.raises(ValueError):
          c.value
  
file_path: CNTK/bindings/python/cntk/tests/variables_test.py
imports: from ..None import times, placeholder, constant, plus, alias, initializer
  import numpy
  import cntk
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_constant_shape_inf() without return types