code: def _parse(data):
      for line in data:
          if not line:
              continue
  
          uid, iid, rating, timestamp = [
              int(x) for x in line.split("\t")
          ]
  
          # Subtract one from ids to shift
          # to zero-based indexing
          yield uid - 1, iid - 1, rating, timestamp
  
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 2 for calling a global function with example usage: _parse(data) without return types