code: def test_split_sparse_tensor_indices(self):
      interactions = sp.coo_matrix(
          [
              [1.0, 0, 0, 1.0],
              [0, 1.0, 0, 0],
              [0, 0, 1.0, 2.0],
          ],
          dtype=np.float32,
      )
      sparse_tensor_interactions = tf.SparseTensor(
          np.mat([interactions.row, interactions.col]).transpose(),
          interactions.data,
          interactions.shape,
      )
  
      x_user, x_item = split_sparse_tensor_indices(
          tf_sparse_tensor=sparse_tensor_interactions, n_dimensions=2
      )
  
      x_user = x_user.eval(session=self.session)
      x_item = x_item.eval(session=self.session)
  
      expected_user = np.array([0, 0, 1, 2, 2])
      expected_item = np.array([0, 3, 1, 2, 3])
  
      self.assertTrue((x_user == expected_user).all())
      self.assertTrue((x_item == expected_item).all())
  
file_path: tensorrec/test/test_recommendation_graphs.py
imports: import numpy
  import tensorflow
  import scipy.sparse
  from unittest import TestCase
  from tensorrec.prediction_graphs import CosineSimilarityPredictionGraph
  from tensorrec.recommendation_graphs import project_biases, split_sparse_tensor_indices, bias_prediction_dense, bias_prediction_serial, densify_sampled_item_predictions, rank_predictions, collapse_mixture_of_tastes, predict_similar_items
  from tensorrec.session_management import get_session
label_desc: Use image node_id 3 for calling the RecommendationGraphsTestCase obj's underlying member method code with example usage: obj.test_split_sparse_tensor_indices() without return types