code: def _time_direction_forward_fn(t, dt, end_time):
      t_next = tf.math.minimum(end_time, t + dt)
      return t_next >= end_time, t_next
  
file_path: tf-quant-finance/tf_quant_finance/math/pde/fd_solvers.py
imports: import tensorflow.compat.v2
  from tf_quant_finance import utils
  from tf_quant_finance.math.pde.steppers.douglas_adi import douglas_adi_step
  from tf_quant_finance.math.pde.steppers.oscillation_damped_crank_nicolson import oscillation_damped_crank_nicolson_step
label_desc: Use image node_id 6 for calling a global function with example usage: _time_direction_forward_fn(t, dt, end_time) and returns: unknown,  t_next