code: def _default_drift_data(dimension, dtype):
      """Constructs a function which returns a zero drift."""
  
      def zero_drift(time):
          shape = tf.concat([tf.shape(time), [dimension]], axis=0)
          time = tf.convert_to_tensor(time, dtype=dtype)
          return tf.zeros(shape, dtype=time.dtype)
  
      return zero_drift, (lambda t1, t2: zero_drift(t1))
  
file_path: tf-quant-finance/tf_quant_finance/models/legacy/brownian_motion_utils.py
imports: import tensorflow.compat.v2
  from tf_quant_finance.math import gradient
label_desc: Use image node_id 7 for calling a global function with example usage: _default_drift_data(dimension, dtype) and returns: zero_drift,  function, tf