code: def divide_with_positive_denominator(a, b):
      """Safely divides by a denominator which is mathematically always positive, but numerically can be zero."""
      dtype = b.dtype
      epsilon = machine_eps(dtype)
      b_positive = tf.debugging.assert_greater_equal(
          b, tf.constant(0.0, dtype=dtype)
      )
      with tf.control_dependencies([b_positive]):
          return a / (b + epsilon)
  
file_path: tf-quant-finance/tf_quant_finance/experimental/american_option_pricing/common.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tf_quant_finance import types
label_desc: Use image node_id 4 for calling a global function with example usage: divide_with_positive_denominator(a, b) and returns: unknown