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)
          process = tff.models.GenericItoProcess(
              dim=1,
              drift_fn=drift_fn,
              volatility_fn=vol_fn,
              dtype=dtype,
          )
  
          paths = self.evaluate(
              process.sample_paths(
                  times=[0.1, 0.2],
                  num_samples=10,
                  initial_state=[0.1],
                  time_step=0.01,
                  seed=123,
              )
          )
          self.assertEqual(paths.dtype, dtype)
  
imports: import os
  from unittest import mock
  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 4 for calling the GenericItoProcessTest obj's underlying member method code with example usage: obj.test_sample_paths_dtypes() without return types