code: def _set_size(self, sparse_data):
      # Validate that we get the same results with or without `validate_indices`.
      ops = [
          sets.set_size(sparse_data, validate_indices=True),
          sets.set_size(sparse_data, validate_indices=False),
      ]
      for op in ops:
          self.assertEqual(None, op.get_shape().dims)
          self.assertEqual(dtypes.int32, op.dtype)
      with self.cached_session() as sess:
          results = self.evaluate(ops)
      self.assertAllEqual(results[0], results[1])
      return results[0]
  
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 9 for calling the SetOpsTest obj's underlying member method code with example usage: obj._set_size(sparse_data) and returns: results