code: def test_set_union_output_is_sorted(self, dtype):
      # We don't use any numbers >= 10 so that lexicographical order agrees with
      # numeric order in this test, for the type dtype == tf.string.
  
      # [3 7 5 3 1]
      # [2 6 5 4]
      # []
      # [9 8]
      sp_a = sparse_tensor_lib.SparseTensor(
          indices=constant_op.constant(
              [
                  [0, 0],
                  [0, 1],
                  [0, 2],
                  [0, 3],
                  [0, 4],
                  [1, 0],
                  [1, 1],
                  [1, 2],
                  [1, 3],
                  [3, 0],
                  [3, 1],
              ],
              dtype=dtypes.int64,
          ),
          values=_constant([3, 7, 5, 3, 1, 2, 6, 5, 4, 9, 8], dtype),
          dense_shape=constant_op.constant([4, 5], dtype=dtypes.int64),
      )
  
      # [9 7]
      # [5 2 0]
      # [6]
      # []
      sp_b = sparse_tensor_lib.SparseTensor(
          indices=constant_op.constant(
              [[0, 0], [0, 1], [1, 0], [1, 1], [1, 2], [2, 0]],
              dtype=dtypes.int64,
          ),
          values=_constant([9, 7, 5, 2, 0, 6], dtype),
          dense_shape=constant_op.constant([4, 3], dtype=dtypes.int64),
      )
      # The union should be
      # [1 3 5 7 9]
      # [0 2 4 5 6]
      # [6]
      # [8 9]
      result = sets.set_union(sp_a, sp_b)
      self.assertAllEqual(result.dense_shape, [4, 5])
      self.assertAllEqual(
          result.indices,
          [
              [0, 0],
              [0, 1],
              [0, 2],
              [0, 3],
              [0, 4],
              [1, 0],
              [1, 1],
              [1, 2],
              [1, 3],
              [1, 4],
              [2, 0],
              [3, 0],
              [3, 1],
          ],
      )
      self.assertAllEqual(
          result.values,
          _constant([1, 3, 5, 7, 9, 0, 2, 4, 5, 6, 6, 8, 9], dtype),
      )
  
imports: from absl.testing import parameterized
  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 sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_set_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sets
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 48 for calling the SetOpsTest obj's underlying member method code with example usage: obj.test_set_union_output_is_sorted(dtype) without return types