<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dict_print(self, output_file="dict.csv"):
 """ Print mapping from tokens to numeric indices. """


        with codecs.open(output_file, "w", encoding='utf-8') as f:
                for (v, k) in self.token_key.items():
                    f.write("%s,%d\n" % (v, k))