code: def testVarLenTensorValueToDenseRows(self):
      tensor = types.VarLenTensorValue(
          values=np.array([1, 2, 3, 4]),
          indices=np.array([[0, 0], [0, 1], [2, 0], [2, 1]]),
          dense_shape=np.array([3, 2]),
      )
      dense_rows = list(tensor.dense_rows())
      self.assertLen(dense_rows, 3)
      np.testing.assert_array_equal(np.array([1, 2]), dense_rows[0])
      np.testing.assert_array_equal(np.array([]), dense_rows[1])
      np.testing.assert_array_equal(np.array([3, 4]), dense_rows[2])
  
file_path: model-analysis/tensorflow_model_analysis/api/types_test.py
imports: from absl.testing import absltest
  import numpy
  from tensorflow_model_analysis.api import types
label_desc: Use image node_id 2 for calling the TypesTest obj's underlying member method code with example usage: obj.testVarLenTensorValueToDenseRows() without return types