#NEWLINE# def new_file( self , **kwargs ) : #NEWLINE# #INDENT# 'Create a new file in GridFS.\n\n        Returns a new :class:`~gridfs.grid_file.GridIn` instance to\n        which data can be written. Any keyword arguments will be\n        passed through to :meth:`~gridfs.grid_file.GridIn`.\n\n        If the ``"_id"`` of the file is manually specified, it must\n        not already exist in GridFS. Otherwise\n        :class:`~gridfs.errors.FileExists` is raised.\n\n        :Parameters:\n          - `**kwargs` (optional): keyword arguments for file creation\n        ' #NEWLINE# return GridIn ( self . __collection , ** self )