code: def _verifyLogarithm(self, x, np_type):
      inp = x.astype(np_type)
      with test_util.use_gpu():
          # Verify that expm(logm(A)) == A.
          tf_ans = linalg_impl.matrix_exponential(
              gen_linalg_ops.matrix_logarithm(inp)
          )
          out = self.evaluate(tf_ans)
          self.assertAllClose(inp, out, rtol=1e-4, atol=1e-3)
  
imports: import numpy
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import gen_linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.linalg import linalg_impl
  from tensorflow.python.platform import benchmark
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the LogarithmOpTest obj's underlying member method code with example usage: obj._verifyLogarithm(x, np_type) without return types