code: def test_constant_initializer(self):
      const = init.Constant(value=0)
      np.testing.assert_array_almost_equal(
          self.eval(const.sample(shape=(2, 3))), np.zeros((2, 3))
      )
  
      const = init.Constant(value=1.5)
      np.testing.assert_array_almost_equal(
          self.eval(const.sample(shape=(2, 3))), np.ones((2, 3)) * 1.5
      )
  
      const = init.Constant(value=1.5)
      np.testing.assert_array_almost_equal(
          const.sample(shape=(2, 3), return_array=True),
          np.ones((2, 3)) * 1.5,
      )
  
imports: import math
  from scipy import stats
  import numpy
  from neupy import init
  from neupy.init import identify_fans
  from base import BaseTestCase
label_desc: Use image node_id 1 for calling the ConstantInitializationTestCase obj's underlying member method code with example usage: obj.test_constant_initializer() without return types