code: def _compare(self, x, np_func, tf_func, use_gpu):
      np_out = np_func(x)
      with self.cached_session(use_gpu=use_gpu) as sess:
          inx = ops.convert_to_tensor(x)
          ofunc = tf_func(inx)
          tf_out = self.evaluate(ofunc)
      self.assertAllClose(np_out, tf_out)
  
imports: import itertools
  import threading
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.gen_array_ops import broadcast_gradient_args
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the MathBuiltinUnaryTest obj's underlying member method code with example usage: obj._compare(x, np_func, tf_func, use_gpu) without return types