<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def type(self):
        "The type of elements stored in the mapping."
        if self._type is None and len(self):
            self._type = self.values()[0].__class__
        return self._type