code: def read_sparse_data(fn):
      with open(fn) as f:
          for line in f:
              yield [
                  [i, float(v)]
                  for i, v in enumerate(line.split())
                  if float(v) > 0
              ]
  
file_path: nmslib/python_bindings/integration_tests/test_nmslib.py
imports: import sys
  import os
  import time
  import numpy
  import nmslib
  from common import *
label_desc: Use image node_id 4 for calling a global function with example usage: read_sparse_data(fn) without return types