code: def testShapeInferenceKnownShape(self):
      with ops.Graph().as_default():
          indices = array_ops.placeholder(dtypes.int64)
  
          shape = [4, 5, 6]
          output = sparse_ops.sparse_to_dense(indices, shape, 1, 0)
          self.assertEqual(output.get_shape(), [4, 5, 6])
  
          shape = array_ops.placeholder(dtypes.int64, shape=(3,))
          output = sparse_ops.sparse_to_dense(indices, shape, 1, 0)
          self.assertEqual(
              output.get_shape().as_list(), [None, None, None]
          )
  
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 18 for calling the SparseToDenseTest obj's underlying member method code with example usage: obj.testShapeInferenceKnownShape() without return types