code: def testAssertDivideByZero(self):
      with self.cached_session() as sess:
          epsilon = ops.convert_to_tensor(1e-20)
          x = ops.convert_to_tensor(0.0)
          y = ops.convert_to_tensor(1.0)
          z = ops.convert_to_tensor(2.0)
          # assert(epsilon < y)
          # z / y
          with sess.graph.control_dependencies(
              [
                  control_flow_assert.Assert(
                      math_ops.less(epsilon, y), ["Divide-by-zero"]
                  )
              ]
          ):
              out = math_ops.div(z, y)
          self.assertAllEqual(2.0, self.evaluate(out))
          # assert(epsilon < x)
          # z / x
          #
          # This tests printing out multiple tensors
          with sess.graph.control_dependencies(
              [
                  control_flow_assert.Assert(
                      math_ops.less(epsilon, x),
                      ["Divide-by-zero", "less than x"],
                  )
              ]
          ):
              out = math_ops.div(z, x)
          with self.assertRaisesOpError("less than x"):
              self.evaluate(out)
  
imports: import os
  import string
  import sys
  import tempfile
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import control_flow_assert
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import logging_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the LoggingOpsTest obj's underlying member method code with example usage: obj.testAssertDivideByZero() without return types