docstr: Error is raised if `dim` is mismatched with the one from normal_draws.
docstr_tok: ["Error","is","raised","if","`","dim","`","is","mismatched","with","the","one","from","normal_draws","."]
code: def test_normal_draws_shape_mismatch_1d(self):
      """Error is raised if `dim` is mismatched with the one from normal_draws."""
      dtype = tf.float64
      process = tff.models.GeometricBrownianMotion(
          mean=0.05, volatility=0.1, dtype=dtype
      )
  
      with self.subTest("WrongDim"):
          with self.assertRaises(ValueError):
              normal_draws = tf.random.normal(
                  shape=[100, 3, 2], dtype=dtype
              )
              process.sample_paths(
                  times=[0.1, 0.5, 1.0], normal_draws=normal_draws
              )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
  from tf_quant_finance.models.geometric_brownian_motion import geometric_brownian_motion_test_utils
  from tf_quant_finance.models.geometric_brownian_motion import univariate_geometric_brownian_motion
label_desc: Use image node_id 24 for calling the GeometricBrownianMotionTest obj's underlying member method code with example usage: obj.test_normal_draws_shape_mismatch_1d() without return types