code: def random_array(self, shape, dtype):
      if np.issubdtype(dtype, np.integer):
          imin = np.iinfo(dtype).min
          imax = np.iinfo(dtype).max
          return np.random.randint(imin, imax, shape, dtype)
      else:
          return np.random.random(shape).astype(dtype)
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import sort_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the SortTest obj's underlying member method code with example usage: obj.random_array(shape, dtype) and returns: np, np