code: def testRandomSmallAndLarge(self):
      np.random.seed(42)
      for dtype in np.float32, np.float64, np.complex64, np.complex128:
          for batch_dims in [(), (1,), (3,), (2, 2)]:
              for size in 8, 31, 32:
                  shape = batch_dims + (size, size)
                  matrix = (
                      np.random.uniform(
                          low=-1.0, high=1.0, size=np.prod(shape)
                      )
                      .reshape(shape)
                      .astype(dtype)
                  )
                  self._verifyInverseReal(matrix)
  
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 ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import benchmark
  from tensorflow.python.platform import test
label_desc: Use image node_id 12 for calling the InverseOpTest obj's underlying member method code with example usage: obj.testRandomSmallAndLarge() without return types