<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_name(self, key):
 """ get display name for a key, or mangle for display """

        if key in self.display_names:
            return self.display_names[key]

        return key.capitalize()