code: def _build_interaction_matrix(rows, cols, data, min_rating):
      mat = sp.lil_matrix((rows, cols), dtype=np.int32)
  
      for uid, iid, rating, _ in data:
          if rating >= min_rating:
              mat[uid, iid] = rating
  
      return mat.tocoo()
  
file_path: lightfm/lightfm/datasets/movielens.py
imports: import itertools
  import os
  import zipfile
  import numpy
  import scipy.sparse
  from lightfm.datasets import _common
label_desc: Use image node_id 4 for calling a global function with example usage: _build_interaction_matrix(rows, cols, data, min_rating) and returns: mat