<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def name(self):
 """Dict with locale codes as keys and localized name as value"""

        # pylint:disable=E1101
        return next((self.names.get(x) for x in self._locales if x in
                     self.names), None)