code: def _assert_static_shapes(self, input_tensor, result_sparse_tensor):
      if isinstance(input_tensor, sparse_tensor_lib.SparseTensor):
          sparse_shape_dims = input_tensor.dense_shape.get_shape().dims
          if sparse_shape_dims is None:
              expected_rank = None
          else:
              expected_rank = sparse_shape_dims[0].value
      else:
          expected_rank = input_tensor.get_shape().ndims
      self.assertAllEqual(
          (None, expected_rank),
          result_sparse_tensor.indices.get_shape().as_list(),
      )
      self.assertAllEqual(
          (None,), result_sparse_tensor.values.get_shape().as_list()
      )
      self.assertAllEqual(
          (expected_rank,),
          result_sparse_tensor.dense_shape.get_shape().as_list(),
      )
  
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 19 for calling the SetOpsTest obj's underlying member method code with example usage: obj._assert_static_shapes(input_tensor, result_sparse_tensor) without return types