code: def _divide_no_nan(
      x, y, name=None
  ):  # pylint: disable=unused-argument
      dtype = np.result_type(x, y)
      y_is_zero = np.equal(y, 0.0)
      div = np.divide(
          x, np.where(y_is_zero, np.ones((), dtype=dtype), y)
      )
      return np.where(y_is_zero, np.zeros((), dtype=dtype), div)
  
imports: import collections
  import functools
  import numpy
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy.numpy_array import _reverse
  from tensorflow_probability.python.internal.backend.numpy.numpy_array import one_hot
  from tensorflow_probability.python.internal.backend.numpy.ops import _convert_to_tensor
label_desc: Use image node_id 24 for calling a global function with example usage: _divide_no_nan(x, y, name) and returns: np