code: def test_initializer_scale():
      # this should work fine:
      p = C.Parameter(shape=(1,), init=initializer.uniform(1))
      with pytest.raises(ValueError) as excinfo:
          name = "uniform_zero"
          p = C.Parameter(
              shape=(1,), init=initializer.uniform(0), name=name
          )
          assert "CreateInitializer" in str(excinfo.value)
          assert name in str(excinfo.value)
  
      with pytest.raises(ValueError) as excinfo:
          name = "glorot_negative_one"
          p = C.Parameter(
              shape=(1,), init=initializer.glorot_uniform(-1), name=name
          )
          assert "CreateInitializer" in str(excinfo.value)
          assert name in str(excinfo.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 11 for calling a global function with example usage: test_initializer_scale() without return types