code: def _strip_reader(filename):
      """
      Reads a file, stripping line endings.
      """
      with PathManager.open(filename) as f:
          for line in f:
              yield line.rstrip()
  
imports: from parlai.core.teachers import FbDeprecatedDialogTeacher, FixedDialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import copy
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: _strip_reader(filename) without return types