def close(self):
if self.__dataset:<EOL><INDENT>self.__dataset.close()<EOL><DEDENT>self.__dataset = None<EOL>return<EOL>
[virtual method override] Closes the writer (e.g., close the underlying
        file)