<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def InitMapping(self, values):
 """Initializes with a map from value to probability. values: map from value to probability """

        for value, prob in values.iteritems():
            self.Set(value, prob)