code: def _testListDiff(self, x, y, out, idx):
      for dtype in [dtypes.int32, dtypes.int64]:
          for index_dtype in [dtypes.int32, dtypes.int64]:
              with self.session():
                  x_tensor = ops.convert_to_tensor(x, dtype=dtype)
                  y_tensor = ops.convert_to_tensor(y, dtype=dtype)
                  with self.test_scope():
                      out_tensor, idx_tensor = array_ops.listdiff(
                          x_tensor, y_tensor, out_idx=index_dtype
                      )
                      tf_out, tf_idx = self.evaluate(
                          [out_tensor, idx_tensor]
                      )
              self.assertAllEqual(out, tf_out)
              self.assertAllEqual(idx, tf_idx)
              self.assertEqual(1, out_tensor.get_shape().ndims)
              self.assertEqual(1, idx_tensor.get_shape().ndims)
  
file_path: tensorflow/tensorflow/compiler/tests/listdiff_op_test.py
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ListDiffTest obj's underlying member method code with example usage: obj._testListDiff(x, y, out, idx) without return types