docstr: Sampled paths have the expected dtypes.
docstr_tok: ["Sampled","paths","have","the","expected","dtypes","."]
code: def test_sample_paths_dtypes(self):
      """Sampled paths have the expected dtypes."""
      for dtype in [np.float32, np.float64]:
          drift_fn = lambda t, x: tf.sqrt(t) * tf.ones_like(
              x, dtype=t.dtype
          )
          vol_fn = lambda t, x: t * tf.ones([1, 1], dtype=t.dtype)
  
          paths = self.evaluate(
              euler_sampling.sample(
                  dim=1,
                  drift_fn=drift_fn,
                  volatility_fn=vol_fn,
                  times=[0.1, 0.2],
                  num_samples=10,
                  initial_state=[0.1],
                  time_step=0.01,
                  seed=123,
                  dtype=dtype,
              )
          )
  
          self.assertEqual(paths.dtype, dtype)
  
file_path: tf-quant-finance/tf_quant_finance/models/euler_sampling_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 7 for calling the EulerSamplingTest obj's underlying member method code with example usage: obj.test_sample_paths_dtypes() without return types