code: def _compare(self, x, dim, num):
      np_ans = np.split(x, num, dim)
      with test_util.device(use_gpu=True):
          tf_ans = array_ops.split(
              value=x, num_or_size_splits=num, axis=dim
          )
          out = self.evaluate(tf_ans)
      self.assertEqual(num, len(np_ans))
      self.assertEqual(num, len(tf_ans))
      self.assertEqual(num, len(out))
      for i in range(num):
          self.assertAllEqual(np_ans[i], out[i])
          self.assertShapeEqual(np_ans[i], tf_ans[i])
  
imports: import numpy
  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 array_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 13 for calling the SplitOpTest obj's underlying member method code with example usage: obj._compare(x, dim, num) without return types