docstr: Helper function to test objax.random.truncated_normal.
docstr_tok: ["Helper","function","to","test","objax.random.truncated_normal","."]
code: def helper_test_truncated_normal(self, shape, stddev, bound):
      """Helper function to test objax.random.truncated_normal."""
      value = objax.random.truncated_normal(
          shape, stddev=stddev, lower=-bound, upper=bound
      )
      self.assertEqual(value.shape, shape)
      self.assertTrue(np.all(value >= -bound * stddev))
      self.assertTrue(np.all(value <= bound * stddev))
  
file_path: objax/tests/testrandom.py
imports: import unittest
  import numpy
  import scipy.stats
  import objax
label_desc: Use image node_id 5 for calling the TestRandom obj's underlying member method code with example usage: obj.helper_test_truncated_normal(shape, stddev, bound) without return types