code: def _input_file_as_lines(cls, session: AppSession):
          '''Read lines from input file and return them.'''
          if session.args.input_file == sys.stdin:
              input_file = session.args.input_file
          else:
              reader = codecs.getreader(session.args.local_encoding or 'utf-8')
              input_file = reader(session.args.input_file)
  
          return input_filf _input_file_as_lines(cls, session: AppSession):
          '''Read lines from input file and return them.'''
          if session.args.input_file == sys.stdin:
              input_file = session.args.input_file
          else:
              reader = codecs.getreader(session.args.local_encoding or 'utf-8')
              input_file = reader(session.args.input_file)
  
          return input_file
docs: Read lines from input file and return them.