code: def read_input_data(filename):
      
      logging.info('Opening file %s for reading input', filename)
      input_file = open(filename, 'r')
      data = []
      labels = []
      for line in input_file:
          tokens = line.split(',', 1)
          labels.append(tokens[0].strip())
          data.append(tokens[1].strip())
      return labels, data
docs: Helper function to get training data