Return a writer object that will write user data on the given file object. The "fileobj" argument can be any object that supports the file API. The optional "dialect" argument defines a CSV dialect. The function also accepts optional keyword arguments which override settings provided by the dialect.