code: def test3d(self):
      tf_ans = sparse_ops.sparse_to_dense(
          [[1, 3, 0], [2, 0, 1]], [3, 4, 2], 1, -1
      )
      np_ans = np.ones((3, 4, 2), dtype=np.int32) * -1
      np_ans[1, 3, 0] = 1
      np_ans[2, 0, 1] = 1
      self.assertAllClose(np_ans, tf_ans)
  
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
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the SparseToDenseTest obj's underlying member method code with example usage: obj.test3d() without return types