code: def FromFile(cls, filename, overwrite=False, auto_transfer=True, **kwds):
          
          path = os.path.expanduser(filename)
          if os.path.exists(path) and not overwrite:
              raise exceptions.InvalidUserInputError(
                  'File %s exists and overwrite not specified' % path)
          return cls(open(path, 'wb'), close_stream=True,
                     auto_transfer=auto_transfer, **kwds)
docs: Create a new download object from a filename.