docstr: Parse the file to A list ready to be used for downstream tasks.
  
  Args:
      input_file: One of train, valid or test file which has never been parsed.
  
  Returns:
      list: A list with parsing result.
docstr_tok: ["Parse","the","file","to","A","list","ready","to","be","used","for","downstream","tasks",".","Args",":","input_file",":","One","of","train",",","valid","or","test","file","which","has","never","been","parsed",".","Returns",":","list",":","A","list","with","parsing","result","."]
code: def parse_file(self, input_file):
      """Parse the file to A list ready to be used for downstream tasks.
  
      Args:
          input_file: One of train, valid or test file which has never been parsed.
  
      Returns:
          list: A list with parsing result.
      """
      with open(input_file, "r") as f:
          lines = f.readlines()
      res = []
      for line in lines:
          if not line:
              continue
          res.append(self.parser_one_line(line))
      return res
  
file_path: recommenders/recommenders/models/deeprec/io/sequential_iterator.py
imports: import tensorflow
  import numpy
  import random
  from recommenders.models.deeprec.io.iterator import BaseIterator
  from recommenders.models.deeprec.deeprec_utils import load_dict
label_desc: Use image node_id 2 for calling the SequentialIterator obj's underlying member method code with example usage: obj.parse_file(input_file) and returns: res