class_docstr: LightGCN model
  
  :Citation:
  
      He, Xiangnan, Kuan Deng, Xiang Wang, Yan Li, Yongdong Zhang, and Meng Wang.
      "LightGCN: Simplifying and Powering Graph Convolution Network for Recommendation." arXiv
      preprint arXiv:2002.02126, 2020.
docstr: Convert a scipy sparse matrix to tf.SparseTensor.
  
  Returns:
      tf.SparseTensor: SparseTensor after conversion.
docstr_tok: ["Convert","a","scipy","sparse","matrix","to","tf.SparseTensor",".","Returns",":","tf.SparseTensor",":","SparseTensor","after","conversion","."]
code: def _convert_sp_mat_to_sp_tensor(self, X):
      """Convert a scipy sparse matrix to tf.SparseTensor.
  
      Returns:
          tf.SparseTensor: SparseTensor after conversion.
  
      """
      coo = X.tocoo().astype(np.float32)
      indices = np.mat([coo.row, coo.col]).transpose()
      return tf.SparseTensor(indices, coo.data, coo.shape)
  
imports: import tensorflow
  import time
  import os
  import sys
  import numpy
  import pandas
  from recommenders.evaluation.python_evaluation import map_at_k, ndcg_at_k, precision_at_k, recall_at_k
  from recommenders.utils.python_utils import get_top_k_scored_items
label_desc: Use image node_id 5 for calling the LightGCN obj's underlying member method code with example usage: obj._convert_sp_mat_to_sp_tensor(X) and returns: tf