code: def dense_to_csr_sparse_matrix(dense):
      dense_t = ops.convert_to_tensor(dense)
      locs = array_ops.where(math_ops.abs(dense_t) > 0)
      return sparse_csr_matrix_ops.dense_to_csr_sparse_matrix(
          dense_t, locs
      )
  
file_path: tensorflow/tensorflow/python/kernel_tests/linalg/sparse/csr_sparse_matrix_grad_test.py
imports: import numpy
  from tensorflow.python.framework import dtypes
  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 gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.linalg.sparse import sparse_csr_matrix_grad
  from tensorflow.python.ops.linalg.sparse import sparse_csr_matrix_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 1 for calling a global function with example usage: dense_to_csr_sparse_matrix(dense) and returns: sparse_csr_matrix_ops