code: def new_file(self, **kwargs):
          
          # No need for __ensure_index_files_id() here; GridIn ensures
          # the (files_id, n) index when needed.
          return GridIn(
              self.__collection, disable_md5=self.__disable_md5, **kwargs)
docs: Create a new file in GridFS.
  
          Returns a new :class:`~gridfs.grid_file.GridIn` instance to
          which data can be written. Any keyword arguments will be
          passed through to :meth:`~gridfs.grid_file.GridIn`.
  
          If the ``"_id"`` of the file is manually specified, it must
          not already exist in GridFS. Otherwise
          :class:`~gridfs.errors.FileExists` is raised.
  
          :Parameters:
            - `**kwargs` (optional): keyword arguments for file creation