code: def get_movielens_data():
      """
      Return (train_interactions, test_interactions).
      """
  
      train_data, test_data = _get_raw_movielens_data()
  
      uids = set()
      iids = set()
  
      for uid, iid, rating, timestamp in itertools.chain(
          _parse(train_data), _parse(test_data)
      ):
          uids.add(uid)
          iids.add(iid)
  
      rows = max(uids) + 1
      cols = max(iids) + 1
  
      return (
          _build_interaction_matrix(rows, cols, _parse(train_data)),
          _build_interaction_matrix(rows, cols, _parse(test_data)),
      )
  
file_path: lightfm/examples/movielens/data.py
imports: import itertools
  import os
  import zipfile
  import numpy
  import requests
  import scipy.sparse
label_desc: Use image node_id 8 for calling a global function with example usage: get_movielens_data() and returns: _build_interaction_matrix,  _build_interaction_matrix