code: def scipy_sparse_to_tf_sparse(x):
      from keras.utils.module_utils import tensorflow as tf
  
      sparse_coo = x.tocoo()
      row, col = sparse_coo.row, sparse_coo.col
      data, shape = sparse_coo.data, sparse_coo.shape
      indices = np.concatenate(
          (np.expand_dims(row, axis=1), np.expand_dims(col, axis=1)),
          axis=1,
      )
      return tf.SparseTensor(indices, data, shape)
  
file_path: keras/keras/trainers/data_adapters/generator_data_adapter.py
imports: import itertools
  import numpy
  import tree
  from keras.trainers.data_adapters.data_adapter import DataAdapter
label_desc: Use image node_id 3 for calling a global function with example usage: scipy_sparse_to_tf_sparse(x) and returns: tf