code: def test_dense_to_sparse_3d(self):
      st = sparse.dense_to_sparse(
          [[[1, 2, 0, 0], [3, 4, 5, 0]], [[7, 8, 0, 0], [9, 0, 0, 0]]]
      )
      result = self.evaluate(st)
      self.assertAllEqual(
          [
              [0, 0, 0],
              [0, 0, 1],
              [0, 1, 0],
              [0, 1, 1],
              [0, 1, 2],
              [1, 0, 0],
              [1, 0, 1],
              [1, 1, 0],
          ],
          result.indices,
      )
      self.assertAllEqual([1, 2, 3, 4, 5, 7, 8, 9], result.values)
      self.assertAllEqual([2, 2, 4], result.dense_shape)
  
file_path: probability/tensorflow_probability/python/math/sparse_test.py
imports: import numpy
  import tensorflow.compat.v1
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import sparse
label_desc: Use image node_id 7 for calling the SparseTest obj's underlying member method code with example usage: obj.test_dense_to_sparse_3d() without return types