code: def message_from_file(fp, *args, **kws):
      
      from future.backports.email.parser import Parser
      return Parser(*args, **kws).parse(fp)
docs: Read a file and parse its contents into a Message object model.
  
      Optional _class and strict are passed to the Parser constructor.