docstr: Tests 3x1x2 permutation with hashed output.
docstr_tok: ["Tests","3x1x2","permutation","with","hashed","output","."]
code: def test_hashed_3x1x2(self):
      """Tests 3x1x2 permutation with hashed output."""
      op = sparse_ops.sparse_cross_hashed(
          [
              self._sparse_tensor(
                  [["batch1-FC1-F1", "batch1-FC1-F2", "batch1-FC1-F3"]]
              ),
              self._sparse_tensor([["batch1-FC2-F1"]]),
              self._sparse_tensor([["batch1-FC3-F1", "batch1-FC3-F2"]]),
          ],
          num_buckets=1000,
      )
      with self.cached_session():
          out = self.evaluate(op)
          self.assertEqual(6, len(out.values))
          self.assertAllEqual([[0, i] for i in range(6)], out.indices)
          self.assertTrue(all(x < 1000 and x >= 0 for x in out.values))
          all_values_are_different = len(out.values) == len(
              set(out.values)
          )
          self.assertTrue(all_values_are_different)
  
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 errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_sparse_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 18 for calling the SparseCrossOpTest obj's underlying member method code with example usage: obj.test_hashed_3x1x2() without return types