code: def dense_and_sparse_from_vals(vals, datatype):
      locs = array_ops.where(math_ops.abs(vals) > 0)
      dense_t = ops.convert_to_tensor(vals, dtype=datatype)
      return (
          dense_t,
          sparse_csr_matrix_ops.dense_to_csr_sparse_matrix(
              dense_t, locs
          ),
      )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/linalg/sparse/csr_sparse_matrix_sparse_mat_mul_grad_test.py
imports: import itertools
  import numpy
  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 gradient_checker
  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_and_sparse_from_vals(vals, datatype) and returns: dense_t,  sparse_csr_matrix_ops