code: def test_construct_vol_no_covar_and_scalar_vol(self):
      dtype = np.float64
      vol = tf.constant(0.94, dtype=dtype)
      np.random.seed(1235)
      dim = 5
      covar_matrix = np.eye(dim) * 0.94 * 0.94
      times = np.array([[0.12, 0.44], [0.48, 1.698]]).astype(dtype)
      actual_vol_fn, actual_tc_fn = bm_utils.construct_vol_data(
          vol, None, dim, dtype
      )
      actual_vols = self.evaluate(actual_vol_fn(times))
      np.testing.assert_array_equal(actual_vols.shape, [2, 2, dim, dim])
      for i in range(2):
          for j in range(2):
              np.testing.assert_allclose(
                  actual_vols[i, j], np.eye(dim).astype(dtype) * 0.94
              )
  
      actual_tc = self.evaluate(actual_tc_fn(times, times + 1.0))
      np.testing.assert_array_equal(actual_tc.shape, [2, 2, dim, dim])
      for i in range(2):
          for j in range(2):
              np.testing.assert_allclose(actual_tc[i, j], covar_matrix)
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow.python.framework import test_util
  from tf_quant_finance.models.legacy import brownian_motion_utils
label_desc: Use image node_id 13 for calling the BrownianMotionUtilsTest obj's underlying member method code with example usage: obj.test_construct_vol_no_covar_and_scalar_vol() without return types