class_docstr: Test cases for unary operators.
class_docstr_tok: ["Test","cases","for","unary","operators","."]
code: def testUnpack(self):
      self._assertOpOutputMatchesExpected(
          array_ops_stack.unstack,
          np.array(
              [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]], dtype=np.float32
          ),
          expected=[
              np.array([1.0, 2.0], dtype=np.float32),
              np.array([3.0, 4.0], dtype=np.float32),
              np.array([5.0, 6.0], dtype=np.float32),
          ],
          equality_test=self.ListsAreClose,
      )
  
      self._assertOpOutputMatchesExpected(
          lambda x: array_ops_stack.unstack(x, axis=1),
          np.array(
              [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]], dtype=np.float32
          ),
          expected=[
              np.array([1.0, 3.0, 5.0], dtype=np.float32),
              np.array([2.0, 4.0, 6.0], dtype=np.float32),
          ],
          equality_test=self.ListsAreClose,
      )
  
imports: import platform
  import unittest
  import numpy
  import six
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import bitwise_ops
  from tensorflow.python.ops import gen_functional_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 29 for calling the UnaryOpsTest obj's underlying member method code with example usage: obj.testUnpack() without return types