class_docstr: Test cases for complex numbers division operators.
class_docstr_tok: ["Test","cases","for","complex","numbers","division","operators","."]
code: def _testBinary(self, op, a, b, expected, equality_test=None):
      with self.session() as session:
          with self.test_scope():
              pa = array_ops.placeholder(
                  dtypes.as_dtype(a.dtype), a.shape, name="a"
              )
              pb = array_ops.placeholder(
                  dtypes.as_dtype(b.dtype), b.shape, name="b"
              )
              output = op(pa, pb)
          result = session.run(output, {pa: a, pb: b})
          if equality_test is None:
              equality_test = self.assertAllCloseAccordingToType
          equality_test(np.real(result), np.real(expected), rtol=1e-3)
          equality_test(np.imag(result), np.imag(expected), rtol=1e-3)
  
file_path: tensorflow/tensorflow/compiler/tests/complex_div_test.py
imports: import os
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the ComplexNumbersDivisionTest obj's underlying member method code with example usage: obj._testBinary(op, a, b, expected, equality_test) without return types